bookmark_borderCreating Chained Selects

When creating chained selects in Gravity Forms, you will need to create a CSV file that will hold all of your available options. In this article, we will show you how to easily create a chained select field using the Chained Selects add-on.

Note: This article assumes that you have already installed and activated the Chained Selects add-on, as well as have added the Chained Selects field to your form.

Creating Choices

First, you will need to create your choices that will be available within the field. This is done by creating a CSV file.

In this example, we will be using Google Drive to create a CSV file, but other software such as Microsoft Excel can also be used.

Setup

Chained Selects requires a few different things within your CSV file to work properly:

  • Selects laid out in columns.
  • Column headers as select labels.

It should look something like this:

Chained Selects Setup

Headers

As you can see, the first row contains the column header. This is essential, as it lays the foundation for each select.

Selects

Following the first row, each combination of options is laid out with subsequent options continuing to the right.

In the following example, the user would be selecting a car’s make, model, and year. Because of this, each option and subsequent child options need to be defined.

Chained Selects Example

As you see above, if a user selected a Toyota, additional options of Camry, Matrix, and Prius would be available. Once the model is selected, the year would then be available.

Generating Choice Files

After you’ve set up your choices, you’ll need to generate a CSV to import into the Chained Selects field. As mentioned previously, we will use Google Drive as an example here, but you’re free to use anything you want, as long as the file is exported as a CSV.

Exporting From Google Drive/Google Sheets

Chained Selects Setup

To export your settings as a CSV, click on File at the top of the page, select Download as, then select Comma-separated values. The file will then be downloaded and ready to import into your Chained Select field.

Uploading Chained Select Choices

To upload your created CSV file, access your field upload the file to the Import Choices field setting. Be sure to update your form when completed to retain your uploaded field choices.