Get 50% off all new Gravity Forms licenses today!

Buy Now
News & Updates -

Gravity Forms Chained Selects v1.0 Released

Carl Hancock By Carl Hancock Published August 3, 2017

Cascading Fields with Gravity Forms Chained Selects

Gravity Forms Chained Selects Add-On v1.0 has exited beta and is now available via the Add-On manager in Gravity Forms and the Add-On Downloads page.

This add-on introduces a powerful new field type, Chained Selects. The Chained Selects field allows you to “chain” multiple drop downs together to create a cascading field. Each selection filters the available options in the subsequent drop downs in the chain until the chain is complete. You can control the display of the drop downs (a horizontal row or vertical column) and prevent inactive Drop Downs from displaying until they have been reached via user selection.

Chained Selects In Action

Importing Choices

Choices can be easily imported via a CSV file. Here’s a sample file in the required format (sample.csv). Once you have your import file created, you can upload it via the “Import Choices” field setting.

Dynamic Population with Chained Selects

For developers looking to dynamically populate Chained Selects, this new field type works a little differently than most other Gravity Forms fields. See the gform_chained_selects_input_choices filter. This filter provides a simple method for populating each drop down in the chain as that drop down becomes available, giving you the flexibility to pull from any data source.

For more details and a practical example which pulls data from a remote data source, see the full documentation for this filter (documentation).

Conditional Logic and Chained Selects

Chained Selects work great with Gravity Forms’ conditional logic. Conditional logic can be dependent on any specific drop down of the Chained Select field as well as special wildcard format for targeting specific values of some drop downs while matching any value of others.

Here’s an example which will show an HTML field for users who select any 2017 Toyota model.

Chained Selects Conditional Logic

The Chained Selects Add-On is available to Developer License owners. Don’t own a Gravity Forms Developer license? Purchase one now!

You may download the Chained Selects Add-On via the Add-On manager in Gravity Forms or via the Add-On download page, and read the documentation here.