Sam Webster
Created Mar 21, 2024Predefining a large number of custom entries in predefined text fields (Form Builder) | FB_027
Here, we'll take a look at creating predefined text fields where the contents are populated via CSV. This is particularly useful when there are a long list of options, for which manual specification of each is not a viable solution.
We'll also take a look at the configuration options surrounding this capability, such as giving the user the option to search in this extended list of entries.
The format shown below will ensure a predefinedText entry which is looking at your uploaded CSV for its values.
The available fields are:
customTargetTag | This is the name assigned to this predefinedText option. This will be visible in the UI when configuring your product using the Form Builder
useCSV | a true or false value stating if an uploaded CSV is to be read
csvPath | Enter the name of your CSV as it was uploaded to the Global Additional Data area, including the ".csv" extension
useDialog | A true or false value that will activate a user friendly dialog to navigate through the options, instead of a simple dropdown list
showSearch | A true or false value that will activate a search feature within the dialog, allowing your users to quickly sift through large amounts of provided data from your CSV.
dialogTitle | A named title given to the dialog pop up, useful for providing instruction
Here is the format, suitable for copy/pasting:
{
predefinedText: [
{
"customTargetTag": "",
"useCSV": ,
"csvPath": "",
"useDialog": true,
"showSearch": true,
"dialogTitle": ""
}
],
}
