Create a local data model using JSON

You can define a data model specific to your forms using JSON files.

  1. Open the form for which to create a data model.
  2. On the form modeling bar, click Data models.

    The Data models page appears.

  3. Click New.
    The Add Data model dialog box is displayed.
  4. Enter a Name for the data model.
  5. Optional. Provide a Description for the data model.
  6. To add a JSON file, click Load from external source.

    The Load from external dialog box is displayed.

  7. On the Type list select JSON Expression. (Default: JSON Expression)
  8. 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.

  9. 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.

  10. Click Add.

    The data model is saved as part of the form configuration.