A Conditional Dropdown is a list whose items depend on a selection in another field. The items that comprise the conditional dropdown change depending on what a user selects in another list. For instance, imagine you're an HR manager in a multi-national company and you're responsible for designing an application that lets you store employee information. When your users enter employee records, you'd like Quick Base to filter the list of cities based on whatever is selected in the Country field.
The form you use to enter new employee records might look something like this:
Understanding conditional dropdowns
A conditional dropdown is always a reference field created when you create relationships among tables. In the example above, there are really three tables and three relationships involved:
When you establish relationships among your tables, Quick Base creates a number of reference and proxy fields in each of your tables. You'll see, in the tutorial that follows, that a reference field for City will be created in your Employees table after you have established the right relationships. This is the field you'll use to select a city for each employee. You'll tell Quick Base to make this field conditional, based on the selection of the employee's country.
(The form shown in the images above uses the City and Country proxy fields, set up for the Related Country and Related City fields, but more about that later. Learn more about proxy fields.)
Turning on conditional behavior
You make a field "conditional" using the Conditional Behavior field property. Because conditional fields must be reference fields, you'll see this property only when you're editing reference field properties.
Once you've turned on the The values in this field depend on a selection in another field property, Quick Base asks you to complete the statement which will specify the conditions for filtering the values in the dropdown. The first dropdown determines the choices displayed for the conditional field (set to Employees: Country in the image). The second dropdown is the field Quick Base uses to filter the values for the conditional field (Cities: Country in the image). Quick Base compares the values in this field with the user's selection in the first field. When you select the employee's Country, Quick Base returns only cities from that country.
Note that, in the example above, we've chosen proxy fields in the conditional dropdowns. When you're making selections in these dropdowns, you should be sure to choose the proxy field rather than reference fields. Reference fields may display a number, like a record ID. Proxy fields display values that are more useful to your users.
Note: List-user fields cannot be used in conditional dropdowns.
Did this help you? Give us a rating:
© 1999-2019 QuickBase, Inc. All rights reserved. Legal Notices.