Lists are a more complicated element in JsonForm. For its implemenation, type=field
and field.type=list
is required. Within the field
configuration space, you need an additional fields
array of objects set. This tells the list how to show your list input(s). If omitted, a basic text list will be generated.
var jsonForm = new JsonForm() var formJson = {...} jsonForm.create("#Form1", formJson, "Form1") jsonForm.registerSubmit(MyFormHandler, "Form1")
Upon submission, your Submit Handler will be called with a (boolean, object) arguments. Submit the form above to see the object below.
Submit the form to see data