Fill drop down with datamodel
The Fill Drop Down With Data Model action fills a dropdown field with values taken from a selected data model. Trigger it from a rule (for example on page load or when a field changes) so the dropdown shows current, distinct values from your data model.
Properties and Explanation
Here are the steps to follow in order to use the Fill Drop Down With Data Model action:
Data Model: Choose the data model that provides the values. This is the source of the list items.
DropDown Field: Select the dropdown field on your page that should be populated. Pick the element ID of the dropdown you want to update.
Field Name: Choose the field (column) from the data model whose distinct values will become the dropdown items. The values from this field will be used as both the visible label and the item value.
Full Configuration Example
Below is a screenshot-style description of the Fill Drop Down With Data Model action configuration, showing all properties set:
Data Model: CustomerList
DropDown Field: customerCountrySelect
Field Name: country
In this example, when the rule runs the action reads the CustomerList data model, collects the distinct values from its country field, and fills the customerCountrySelect dropdown so users can pick one of those countries.
Last updated