The Option Name Attribute and Option Value Attribute settings (or Column Name and Data Key settings if you’re configuring a Table element) only appear once you've chosen a data set or array from the Data Source setting, as described above.
Once you've identified the data source that holds your options, all you have to do is direct the system to the attribute within that data set or array that you wish to generate your options from. An attribute is just a data set that lives within your larger data source. (If you’re displaying your data in a Table element
, you’ll be dealing with column names and data keys, which are analogous to attributes and attribute values).
You can use the Option Name Attribute and Option Value Attribute settings to direct the system to create options that come from your data set. To do so, you can use the dropdown menu in the Option Name Attribute setting to select a name for the attribute of your choice. This setting can take a name from any one of the existing data points in your array.
Next, you can use the dropdown menu for the Option Value Attribute setting to select a value you wish to assign to that attribute. The value simply refers to the data you wish to actually display to the agent as options. The Option Value Attribute value can be whatever you wish to assign to the option, or you can have the value match your Option Name Attribute. Please note that the values you enter here can be accessed elsewhere in the platform for tracking and reporting purposes.
If you would like to learn more about how to create and incorporate a data set or array into your script, please refer to this article on using the Data Builder tool
for more information.