Skip to main content

HelloID

Add, edit, or remove a static data source

For more information, see Static data sources.

Add a static data source

Note

Prerequisite: The Weather report form shown in the Add a dynamic form article.

  1. Go to Self Service > Forms and click Edit for the relevant form.

    For this example, we'll edit our Weather report form.

  2. Click Edit Form Element to edit the form element that you want to populate via a static data source.

    For this example, we'll edit the Dropdown element on step 1 of our form.

  3. Enable the Use Data Source toggle.

    2022-06-01_13-25-16.png
  4. Click Configure Datasource.

  5. Enter a Name and select a Type.

    For this example, we'll name it Weather report static datasource and select Static as the Type.

    2022-06-02_11-08-47.png
  6. Click Next.

  7. In the editor, replace the example data with the JSON with which you want to populate the form element, and then click Suggest A Model.

    For this example, we'll enter the following JSON:

    [
    	{
    		"tempUnitLabel": "Fahrenheit",
    		"tempUnitValue": "fahrenheit"
    	},
    	{
    		"tempUnitLabel": "Celsius",
    		"tempUnitValue": "celsius"
    	}
    ]
    2022-06-01_14-57-08.png

    Tip

    See Static data source JSON examples for JSON examples for various form elements.

  8. Click Save.

  9. HelloID takes us back to the Edit Form Field dialog.

    The Value Field dropdown represents the actual data value which will be submitted, whereas the Text Field dropdown represents the label that will be shown to the end user.

    For this example, we'll set the Value Field to tempUnitValue, and the Text Field to tempUnitLabel.

    2022-06-01_14-58-29.png
  10. Click Update Field.

  11. Click Save.

  1. For the relevant dynamic form or delegated form, Edit a dynamic form or Edit a delegated form.

  2. For the form element that contains the data source, click Edit Form Element.

  3. Go to the Data Source tab.

  4. Continue by following the instructions in Add a static data source.

  1. Go to Self Service > Data Sources.

  2. For the relevant data source, click Delete.

  3. To confirm, click Delete.