The ability to filter one field from another field is called cascading fields.
Cascading fields can be configured between:
- Two choice fields
- A single choice field and a multi choice field
- Two lookup fields
- A lookup and a relationship field
Cascade between choice fields
The example below describes how to filter between Category and Sub-category choice fields.
- Open the form of where you want to configure the cascading choice fields
- Create and add values to both Category and Sub-category choice fields
- Select Save
- Navigate to Application toolbox
- Expand the Choice Fields menu from left hand navigation
- Select the application in the drop down of where Category and Sub-category choice fields were created in
- Select the child choice field, in this case Sub-Category and Create a new form
- Add the Name field to the form
- Select + in left navigation area of the Form Builder
- Drag and drop Choice Field field onto the form
- In the Choice Field Properties dialog select Use Existing
- Find and select the parent choice field, in this case Category
- Name your choice field with the same name as the existing one
- Select OK
- Save the form
- Navigate to Administration – Resources – Choice fields
- Find and select the child choice field, in this case Sub-Category
- Select choice field value
- Edit the choice field and select the appropriate parent value
- Repeat steps 18 and 19 until all parent-child values have been assigned
- Navigate back to the Form from step 1
- Modify the Choice Field Properties of the child choice field, in this case Sub-Category
- Expand Options and from the Form Detail tab, select the Filter By picker
- Add Filter and select the parent choice field in Filter by field and Relationship
- Select OK
- Save the form
Cascade between lookups/relationships
The example below describes how to filter between Campus and Buildings lookups.
- To filter the child lookup based on the value of the parent, firstly, ensure that you have a parent-child relationship between two objects. In our campus and building example, campus is the parent and building child, where the campus object must contain a relationship to building.
- Secondly, ensure you have records against Campus which also include Building relationship records
- Now open the form of where you want to configure the cascading lookups
- Modify the Lookup Properties of the child lookup, in this case Building
- Expand Options and from the Form Detail tab select Filter By picker
- Add Filter and select the parent choice field in Filter by field and Relationship
- Select OK
- Save the form