The Dynamic Select field lets you populate a dropdown based on the value of another field. It is useful for creating conditional field groups, where the options in one select change depending on what a user selects in another.
This helps avoid creating multiple separate select fields for each possible condition. Instead, one Dynamic Select adapts based on the user's input.
Settings
To use this field, choose Dynamic Select as the type. Then configure these settings:
Source Field: Enter the name of the field that will control the options. The select will update whenever this field changes.
Rules: Define one or more rules to determine which options should be shown. Each rule includes:
Source Value: The expected value from the source field.
Use Regex: Enable this if the value should be treated as a regular expression.
Options: A list of dropdown options to show when the rule matches. Enter one option per line. If you only provide a label (no colon), the label will be used as both value and label.
Example
Imagine you have a field named country
where users choose between Italy
, Germany
, and France
. You want to show a list of cities that depends on the selected country.
Source Field:
country
Rules:
Source Value:
Italy
Options:
Rome
Milan
Venice
Source Value:
Germany
Options:
Berlin
Munich
Hamburg
Source Value:
France
Options:
Paris
Lyon
Marseille
This way, the Dynamic Select will show the relevant cities based on the selected country.