Why do TrackVia Users need Dependent Drop Downs?
Dependent Drop Downs are an exciting feature that allows for quicker, more accurate entry of information into TrackVia.
Let's quickly review the old way for entering data. In this example, TrackVia is being used to add addresses to an application. A TrackVia form has been created for Address entry. It links to three parent tables: Country, State/Province, and City. Country is a parent to State/Province and City, and State/Province is a parent to City. Here's what the database looks like visually:
This application has a form for adding addresses with Link to Parent drop downs for Country, State/Province, and City. The first problem with this arises when Users attempt to select a city. There are 250 cities in this application and there's no good way to distinguish Aurora, Colorado from Aurora, Ontario or Columbus, Ohio from Columbus, Georgia.
The current construction of this form also allows selection of a Country, State/Province, and City that don't go together. A system, like the one below, that allows us to capture an address of New York City, TX, Canada is one that's prone to data entry errors.
In short, this form makes the data entry process more difficult and error-prone than it should be.
Dependent Drop Downs: The Solution for Faster, More Accurate Data Entry
Dependent Drop Downs are a solution to these problems. With this feature, users have the ability to filter the City drop down by the values selected in the State/Province and Country drop downs. This provides a shorter, easier list that preserves data integrity.
Instead of seeing every city in the database, now our User is only seeing those cities in Ohio. Below, we'll describe how to configure Dependent Drop Downs.
Setting up Dependent Drop Downs
Dependent Drop Downs are configured at the Form-level from the Form Editor. Start by entering the Field Settings of the field you wish to filter. In this example, that is City.
Inside the Field Settings, click on the "Rules" tab.
Under the "Create a New Rule" drop down, select "Apply Filter".
When Applying a Filter, users have the option to conditionally filter. That is, the filter is only applied when a certain condition is met. This conditionality works exactly as the conditions in Show/Hide Rules. For this example, the filter will always apply.
To create the filter, click in the "Field to filter by" drop down. The field by which you are filtering must be the Record ID of a Parent Table. In the current version of Dependent Drop Downs, only the Record ID of the table will be available. Be careful, this can get confusing as Record ID up the relationship chain (Parent, Grand Parent, Great Grand Parent etc.) will all be available for filtering and may not reflect the field on the form that the users will be choosing.
In this example, we see the ability to filter by Country or by State/Province. For now, we will select the option to filter by State/Province.
Next, select the field that is being filtered.
In this example, we're filtering the field "State/Province" on the "Cities" table.
As the sentence below the field selection confirms, we are only showing records where the "State/Province" field in the "Cities" table is identical to the "State ID" of the "State/Province" table selected.
This rule is now completely built. In the Form Editor, it's possible to see which fields have rules associated with them. The State/Province field is used as a filter, which is denoted with the Filter icon. The City field is filtered by the rule, which is denoted with the clipboard icon.
We can save the form and edit the Form Builder.
When adding a record with the form, clicking on the "Cities" drop down without selecting a State/Province still shows all records in the Cities table.
If the User first selects a State/Province, this will limit the "Cities" drop down to only those Cities associated with that State/Province.
We've successfully filtered "Cities" by the value selected in "State/Province".
Next Steps with Dependent Drop Downs
We could end here and this would be a success, but we can also add additional filters to further limit our options and ensure data integrity. "State/Province" can have a "Country" filter applied, because it is a child of the "Country" table.
We can also apply a second rule to "Cities" to filter it by "Country", because "Country" is also a parent to "Cities".
Now, selecting a value in "Country" can be used to filter either "State/Province" or "City".
We've now successfully used Dependent Drop Downs to filter possible results, make data entry quicker by eliminating unwanted choices, and remove the likelihood of corrupt data by preventing users from selecting records that are unrelated.
To go one step further, TrackVia Admins could consider adding Show/Hide rules to force users to select a "Country" or "State/Province" before selecting a "City".
Limitations of Dependent Drop Downs
- Dependent Drop Down rules can only be applied to Relationship fields.
- There must be a relationship (or chain of relationships) between the two parent tables in order to configure a dependency between the fields (see screenshot below)
- Dependent Drop Down rules are a function of the Form itself, which means they can only be applied on Forms, and can't be applied to Views.
For example, if you are editing a record with a Form that has a Dependent Drop Down rule applied to a Relationship field, the options shown in the field will be filtered according to the rule. However, if you in-cell edit a record in a View instead of opening the record with a Form, the Dependent Drop Down rule will not be applied and the options shown will not be filtered as they are while using the Form. - Mobile App - Dependent Drop Down rules require an internet connection and do NOT work if the mobile device is offline.
Related Articles:
How to Create a Form
How to Use Form Show / Hide Rules
How to Assign a Parent View to a Relationship Field
Comments
0 comments
Please sign in to leave a comment.