Make a choice field depend on another field
Filter a choice field's values by the value of another choice or reference field on the same form.
Make a choice field depend on another field when the values that make sense depend on an earlier answer. For example, a Business area field can offer different areas for each value of a Type field.
Before you begin
- You need the
administratorrole to change field definitions and form layouts. - Both fields must exist on the table. The dependent field is a choice field. The field it depends on is a choice or reference field.
- Have the keys of the controlling field’s values to hand, or the IDs of the records if it is a reference field.
The steps use two choice fields as the example: Type, with the values Issue (key issue) and Request (key request), and Business area, which depends on Type.
Steps
-
Open the field definition of the dependent field, Business area. Right-click its label on the form and select Show definition.
-
Add the property
dependent.onwith the field name of the controlling field as its value, hereType. Save the definition.
The Properties of a choice field definition with dependent.on set. -
Open the form builder for the form. See Configure a form layout.
-
Hover over the dependent field and select its gear. Under Advanced options, set the three options in the table below, then save the form.
-
Go to Application → Field → Available values and open each value of the dependent field.
-
In Qualifier, enter the key of the controlling value for which this value should show. For example, set the qualifier of the area for issues to
issue. Save each value.
An available value record with its Qualifier set to the key of a Type value.
| Option | Value |
|---|---|
| Field value type | Dependant field |
| Dependant fields | The controlling field, here Type |
| Dependant field action | Recalculate available field values |
Classifications support the same filter. A classification’s Qualifier works like an available value’s when its field depends on another field. See Classifications.
Result
When a user picks a Type, the Business area field recalculates and offers only the values whose qualifier matches the Type’s key. Values with no qualifier are not filtered by Type. [UNVERIFIED]