Create a local data model using JSON
You can define a data model specific to your forms using the JSON files.
- Open the form for which to create a data model.
-
On the form modeling bar, click
Data models.
The Data models page appears.
-
Click
New.
The Add Data model dialog box is displayed.
- Enter a Name for the data model.
- Optional. Provide a Description of the data model.
-
To add a JSON file, click
Load from external source.
The Load from external dialog box is displayed.
- On the Type list select JSON expression. (Default: JSON Expression)
-
Browse the file or drag the file into the
File box.
You can also paste the sample JSON format in the File content box.
Once you add the files, the file preview is displayed in the File content box. You can edit the file if required.
-
Click
Add.
The JSON file is parsed, and the fields are displayed in the tree structure in the canvas. You can change or rename the field properties or delete them from the tree.
-
The field names support these special characters (!@#$%^&*()_+-={}|:"<>?,./;'[]\).
-
If the JSON file cannot be parsed, an error message is displayed.
-
When you define a tree structure for the data model, but provide a different JSON sample, an error message is displayed that the existing model will be overwritten. You must confirm if you want to continue; this action cannot be undone.
-
-
Click
Add.
The data model is saved as part of the form configuration.