Use logic to hide questions based on previous answers or URL parameters

You can use logic to hide upcoming questions based on the respondent’s previous answers in the form.

This can be a question that is irrelevant to the respondent based on previous answers to the form. For example, if a person answered that they have not made a purchase, you wouldn’t want to ask for feedback about an item purchased. Question display logic can also be based on information you already know about your respondents through URL parameters.

Click to find out more about starting logic on URL parameters.

In the example below, there’s a simple form asking for people’s name, email address, and a rating question asking them to rate their experience with us.

Looking to hide answer choices instead? Take a look at our guide on how to hide upcoming answer choices.

To hide questions in your form with logic

1. Open up an existing form or create a new one, and click + next to Logic.

2. Select the question you want to hide on the left. In this example, you’ll be hiding the first name question.

3. Click Question display to hide questions based on previous responses or URL parameters.

4. Click + Add hide question rule.

5. Now you can add your logic rule for when you want to hide the question by using the dropdowns. We want to hide the first name question if we already know the respondent’s first name based on the first_name URL parameter.

In this example, we’ll create a logic rule to say: When first_name is not equal to xxxxx

This means that the first name question will be hidden when the first_name URL parameter is not empty.

6. Select Is not equal to from the dropdown list. In this example, the logical condition will apply when the first_name URL parameter is not empty. 

7. Let’s populate this field with a value, for example, xxxxx. This means that the first name question will be skipped when the first_name URL parameter is not empty.

8. Now let’s repeat this for the email question. When the email URL parameter is not empty, your respondents will also skip this question. Click Save to save changes when you’re done with your selection.

9. You can also add Recall information to the Rating question by typing @ and selecting the first_name URL parameter. This will allow you to greet your respondent by their first name if this information is already available through URL parameters.

10. Now let’s publish the form and see how this works in practice. Click Share or Publish edits in the top right corner.

11. Click Copy link on the Share page to grab the URL, and paste this link into your browser to try it out. 

12. First, when the URL parameters of the form are not populated, people will see the first question asking for their first name.

13. Now let’s populate the URL parameters of the form with an example first_name and email value, and reload the page.

Now your respondents will only see the rating question asking them to rate your services, and they’ll skip the first two questions asking for their name and email address. 

For a seamless experience, this question will be displayed as question number one, and respondents will be greeted by their name based on the first_name URL parameter populated in the URL of the form.

Give it a try! This feature is an easy way to help ease survey fatigue and cognitive load by only showing your respondents information relevant to them, which means they might be more inclined to respond to your survey.

Was this article helpful?

Have more questions? Submit a request

Tap into our community knowledge

Find answers

Can’t find what you’re looking for?

Contact support