Conditional Dropdowns | BEGINNER
Conditional Dropdowns are a feature of table-table relationships in Quick Base, where you can effectively filter the results you see in a Related field (referencing your parent table), and make the options shown ‘conditional’ on the selection of another field.
To put that another way – picture a classic CRM example. You are on the phone with a potential repeat customer, a company you have done business with before, and you are pulling up their company and contact info to enter a new project. Step 1 – you’ve selected their company from a dropdown for ‘Related Company’. Step 2 – you want to pull up the Contact info of who you’re talking to via a field for ‘Related Contact’, but your dropdown has too many values and is hard to sort through. It would be nice, if instead of all contacts, you only saw the contacts that worked for the company selected in Step 1. In other words, the options for your ‘Related Contact’ are conditional on what you choose in ‘Related Company’.
EDITORS NOTE: Conditional Dropdowns are a feature specific to ‘Reference Fields,’ meaning those fields that link a Parent table to Child Table. Common examples of reference fields would be things like Related Company, Related Project, Related Employee etc.
To carry out the example above – picture a simple set up similar to below:
Companies have many contacts Companies have many Projects Contacts have many Projects
From our example, we are trying to set up a new ‘Project’, where two of the primary inputs from the diagram will be ‘Related Company’ and ‘Related Contact’. Our end goal is to make ‘Related Contact’ conditional on ‘Related Company’, so we only see contacts that work for the chosen company.
***For this example, it should be noted that we are creating a new project and selecting a Company and Project. Therefore, the field we are updating for ‘Related Contact’ will also be in the Contacts table.
- Open the field properties of ‘Related Contact’ (this is the field that we want to limit our options based on the selected company)
- In the section of the field settings screen for ‘Reference field options’ – toggle the box for ‘Conditional Values’ | ‘The values in this field depend on a selection in another field’
- In the first dropdown for ‘A selection in’, select the value in the ‘Projects’ table that you want to make this field conditional on. Since we want our Related Contact to be conditional on the value in Related Company, we’ll select that in this example.
- For the dropdown in ‘Show choices where’, select the field in the ‘Contacts’ table that you are comparing what you selected in step (3) to. As we are trying to only show contacts that work for our selected company, we’ll want that to be the selection here that is entered the Contacts table.
With the above set up – when you make a selection in ‘Related Company’ in your project, you will only be shown Contacts from your Contacts table that are also assigned to that same ‘Related Company’.
EDITORS NOTE: Because a conditional dropdown is dependent on a selection in another field, it is important that for data entry, you include both fields in your form or Grid Edit report if you are using them. So from our example, your form or report would have to include the Related Company and Related Contact to avoid issues in data entry
For more information about relationships, read through our guide to setting them set up here
- Author: Chayce Duncan (email@example.com)
- Date Submitted: 12/26/2018