How to create a cascading dropdown field
Cascading dropdowns allow you to create selection lists that dynamically change based on another dropdown's selection. For example, if you have country and city dropdowns, you can filter the cities based on the selected country. Here's how to set up cascading dropdowns:
- Click Add Field and select Dropdown. Give it a name, for example, "City."
- Then, select 'Apply cascading filter.'
- You'll see a data source editor with three columns: Id, IdParent, and Name. In the IdParent column, enter the ID of the country you previously added.
- Click Ok to save your settings.
- Now, click the Add button for the table. First, select a Country, and then edit the City field. You'll notice that the city data source will be dynamically filtered based on the selected country.