Prefilling data from a source

Assign data from a data source to fields in the form

In FORMCYCLE is it possible to save sources in the format JSON, XML and CSV. This data can be accessed by an interface and then processed further, for example to preassign the data. It is also possible to use a external URL which deliver the data. Via a ajax request can be read the data.

 

In that example will be used a JSON data source for demonstration. Further informationen about accessing an using data sources you will find here.

Data of person

No.

Topic

Course

Obligatory

Example JSON:

{

    "firstname":"Max",

    "birthdate":1044054000000,

    "gender":1,

    "id":1,

    "login":"mm",

    "email":"test@mail.de",

    "events": [

     {

          "obligatory":"on",

          "topic":"Topic A",

          "course":"Course A"

      },

     {

          "obligatory":"",

          "topic":"Topic B",

          "course":"Course B"

      },

      {

          "obligatory":"",

          "topic":"Topic C",

          "course":"Course C"

       }

    ],

    "lastname":"Mustermann"

}

Enable JavaScript to see the sample code