Introduction
Adding a Choice Field to your form has always been available within Convertr Forms. With the Global Forms this can be done via JSON as well. This document will outline this and take you through how to format the JSON needed as well, if required.
Setup Process
1. Navigate to the Forms section in the left sidebar and click Edit beside your form.
2. Navigate to the Fields tab.
3. Add a new input with the type Choice.
4. Enter a Name for your field and a Label, such as country, then click Save.
5. Click the Settings icon. This will allow you to add the dropdown options to your choice field.
6. To add individual choice options, copy and paste your values into the Value and Label fields, using the Add button to add additional options.
7. To add via JSON, you will first need to format your list within Excel or a similar product into the following structure {"USA":"USA", "UK":UK, "AUS":AUS}. The following steps will show you how to do so:
a. Open your list in Excel (or a similar product).
b. Paste your List into column B.
c. In Column A row 1 enter {" and then in row 2 enter " and copy this all the way down to the final item in your list.
d. In column C row 1 enter ";" and copy this down to all items on your list also.
e. In column D copy your list of values.
f. In column E enter ", and copy this down to all the items on your list.
g. Within the final item in column E replace the ", with "} as this will close out the JSON string.
h. Select a cell that is separate from your list and enter =CONCAT() and highlight all the cells you have just created above.
I. When the modal opens, click OK. Within your new cell is the formatted JSON that can be used in the platform
8. Return to the platform and paste your JSON into the JSON editor and click Save.