Editing the File form-name .data.json

The .data.json file is a generated file. Do not edit the original file. If you edit it, your customizations are overwritten when the file is regenerated.

Also, be sure to maintain the file extension, .data.json. Otherwise, your customized preview data file is not accessible to the form.

Procedure

  1. In the Project Explorer, find the file that contains the preview data.

    The default location of this file is: [project-name] > Forms > ProcessPackage > [business-process-name] > [user-task-name] > [form-name].data.json

  2. Right-click the .data.json file and click Copy. Then, in the same location in the Project Explorer, right-click and click Paste.

    The Name Conflict dialog appears asking you to type a new name for the file. Rename the file keeping the extension .data.json. Do not delete the original preview data file.

  3. Right-click your newly-named custom preview data file, and click Open With > Text Editor.
  4. Edit the file, providing your desired values for the preview data in place of the default values in the file.

Result

Example of Default Preview Data File

{
    "body": {
        "inputs": [

        ],
        "outputs": [

        ],
        "inouts": [
            {
                "name":"Customername",
                "simple": [
                    "Text"
                ]
            },
            {
                "name":"CustomerAddress",
                "simple": [
                    "Text"
                ]
            },
            {
                "name":"Customerdateofbirth",
                "simple": [
                    "2019-07-04"
                ]
            },
            {
                "name":"Sharetheinformation",
                "simple": [
                    true
                ]
            }
        ]
    }
}

Example of Customized Preview Data File

{
    "body": {
        "inputs": [

        ],
        "outputs": [

        ],
        "inouts": [
            {
                "name":"Customername",
                "simple": [
                    "John Smith"
                ]
            },
            {
                "name":"CustomerAddress",
                "simple": [
                    "Address of Customer"
                ]
            },
            {
                "name":"Customerdateofbirth",
                "simple": [
                    "yyyy-mm-dd"
                ]
            },
            {
                "name":"Sharetheinformation",
                "simple": [
                    true
                ]
            }
        ]
    }
}