Skip to main content
All CollectionsFeaturesSheetgo Forms
How to configure subquestions for Sheetgo Forms?
How to configure subquestions for Sheetgo Forms?

Include fields that change based on how users fill a form.

Karoline Fernezlian avatar
Written by Karoline Fernezlian
Updated over a week ago

Sheetgo Forms allow you to collect data efficiently by creating customizable forms that feed directly into your spreadsheets. The ability to configure subquestions allows you to gather more detailed information without overwhelming users.

How to configure subquestions

For example, when someone selects an order item as a "drink," it triggers a new set of questions to specify the type of drink ("Coke," "Water," or "Ginger Ale"). This selection can trigger another set of questions about the drink size ("Bottle" or "Can").

To set up this configuration, you will need a spreadsheet with 2 tabs:

  1. The Form Questions Tab contains the form questions, as explained in How to create a new form.

  2. The Parameters Tab contains the parameters your form will use to populate the subquestions.

Let’s use the restaurant example to show how to use of this feature.

Add primary question to main forms sheet (tab 1)

  1. Create a new column for your primary question: Add the field title as a column header.

  2. Format your primary question with data validation: Add a list of values for the primary question.

Copy of FormSubquestion6

As seen above, our primary question is "Order Item Type," with data validation that includes the values "Drinks," "Sandwich," "Burger," and "Dessert."

This setup creates the initial list of questions in your form. Now let's configure the subquestions in the second parameters tab.

Set up the subquestions in the parameters sheet (tab 2)

The parameters sheet should list all potential combinations of values for your primary question and its subquestions.

Create columns for your primary question and subquestions: List all potential combinations as new rows. For example, if a user selects "Drinks" from the primary question, list all the different drink options, like "Coke," "Water," and "Ginger Ale." Repeat this process for each value from your primary question.

Your sheet should look something like this:

listitem

You can continue adding columns for additional subquestions, making it easier to filter this table by item and sub-item.

listitem2

Please note: In your second tab, you must list every possible combination of values as new rows. If not done correctly, users may experience issues when filling out your form.

You can also choose to create a new table for each set of parameters rather than one long table as shown above (e.g., a table for "Drinks" values, a table for "Dessert" values, etc.). However, this will affect how you configure your form questions in the next step.

Adjust the main forms sheet (tab 1)

Now that your parameters are listed in your second tab, return to the main forms tab to apply the configurations for the subquestion behavior. Below is an example of what your main forms tab should look like:

The “Order Item Type” above is the column you created in the first step. This should contain the field title and should be formatted with data validation. You can also add configurations to adjust the way it is presented in the form.

Now it’s time to create the next set of columns for your subquestions. For this, you’ll need to use the following order of configurations:

  1. Use conditional configuration to set up the relationship with the primary question column (in this example, the “Order Item Type” column).
    It should look like this in our current example:

    [conditional: “Order Item Type”]

    Please remember the value after the conditional should be the exact name of the primary question column.

  2. Next, you must link to the parameters sheet and the range of cells that directly link to your primary question. In this example, I need to link the range of cells in the “Type” and “Item” columns in my parameter tab, to the “Order Item Type”.

    “Parameters!A2:B100”

    This is similar to how you’d build a vlookup. At this step, the configuration will look like this so far:

    [conditional: “Order Item Type”, range: “Parameters!A2:B100”]

  3. You can also set up the field to accept any text response by adding the command text to the end of the header. It will then look like this:

    [conditional: "Order Item Type", range: "Parameters!A2:B100", text]

    This allows you to input any text item that you wish but in case it matches one of the previously listed items, it also accepts that input and shows the new option as expected.

  4. Repeat the steps for however many sub-questions you want or need to use on your form.

Once you have carried out the steps above, your form spreadsheet is now ready to use. Using the example above, whenever a user selects an item in the “Order Item Type” field, their specific answers will trigger a new sub-question field where they can continue to select the following answer.

How to use Auto-fill

Another powerful feature of the subquestions is the auto-fill function, which allows a new answer to be automatically completed based on the previous one.

To configure this on your form, we need to use the configuration vlookup and two others based on a conditional field, key, and range.

This is used to indicate another field that will provide the value to be searched for. The value of the key configuration will be the same name as this other field. Range, on the other hand, is used to indicate the data. The first column must have the searched value and the following columns must have values related to this one. Here is an example of how the configuration looks on your spreadsheet.

chrome_hXhZL024mz

Using the above example, a pre-filled field can be configured to: [default:vlookup, key: "User id", range:"Auto fill parameters!A2:B"], where an existing field called User id will have options ranging from 1 to 6. When this field changes, our pre-filled field will change its default value based on the previous value. Here is a look at this system in action:

chrome_xcfaCBkyOn

Additionally, an index configuration can be added to indicate which column of the range will have the values that will be displayed in the field. This follows a notation of 1 to many.

chrome_wVZcp1w3HT

In the above example, if the range was "Auto fill parameters!A2:C", including the column Color, and values of column Name should be displayed, adding index:2 would achieve this goal. If the index is not indicated, the last column of the given range will be used.

chrome_lN7y0KAhC9

Configuring subquestions in Sheetgo forms is a powerful way to enhance your data collection process. By following these steps, you can set up conditional logic to show subquestions based on respondents' answers, making your forms more dynamic and efficient.

Need more help?

Contact us via chat, on our email ([email protected]), or send us a ticket!

Visit our Community for help, tips, tricks, and feedback for Sheetgo.

Did this answer your question?