Skip to main content
Loading...
Skip to article
  • Qualtrics Platform
    Qualtrics Platform
  • Customer Journey Optimizer
    Customer Journey Optimizer
  • XM Discover
    XM Discover
  • Qualtrics Social Connect
    Qualtrics Social Connect

Display Logic


Was this helpful?


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The feedback you submit here is used only to help improve this page.

That’s great! Thank you for your feedback!

Thank you for your feedback!


About Display Logic

You can use display logic to create a survey that is customized to each respondent. When a specific question or answer choice pertains only to certain respondents, you can set display logic on it so that it shows conditionally based on previous information. You can choose to conditionally display both questions and answer choices, allowing you to create a survey that dynamically adapts to your respondent’s answers. Display logic is found in the Question behavior section of the survey builder.
the question behavior section of the survey builder with display logic highlighted

Qtip: If you’re looking to skip respondents to a later part in your survey based on their answer choices, use skip logic instead.
Qtip: Display logic is ideal for conditionally displaying answer choices or single questions. If you have a group of questions that require the same logic, consider using branch logic instead.

Setting Question Display Logic

This section walks through using display logic to conditionally display a question based on the respondent’s previous answers.

Example: Let’s say you have a survey that asks respondents two questions: “Do you have any children?” and “How many children do you have?” You can set display logic on the second question so that only respondents who answered “Yes” to “Do you have any children?” will see the question asking them how many children they have.
Attention: Using display logic will insert a page break after the question with the display logic unless the In Page option is enabled. See using in page display logic for more information.
  1. Select the question that you want to display conditionally.
    adding display logic to a question by selecting the question and clicking display logic
  2. Select Display logic.
  3. Set the condition that must be met for the question to display. The condition can be based on any of the following:
    creating a condition to base the display logic on

  4. If desired, select the In Page checkbox if you want the question to appear immediately once the condition is met, rather than displaying it on the next page of the survey. For more information about this option, read the using in page display logic section.
    selecting the in page logic option and saving the display logic
  5. When finished creating your conditions, click Save.
Qtip: For an in-depth resource to help build complex logic conditions, or for help troubleshooting your logic, consult our using logic support page.

Features incompatible with In Page Display Logic

Pretty much every question type can have in page display logic applied to it. However, when you’re creating the condition under which display logic is activated, in page functions are not always compatible.

the message that in page logic can't be used due to an incompatible feature

Example: In the screenshot above, the display logic is based off a text entry question, so in page functions can’t be applied since text entry is incompatible with in page logic. It does not matter that the question with the display logic on it is compatible.

Here’s a list of some of the features incompatible with in page display logic:

  • Loop and merge
  • Skip logic
  • Multiple choice – dropdown list questions
  • Text entry questions
  • Pick, group, and rank questions
  • Drill down questions
  • Constant sum questions
  • Side by side questions
  • Rank order questions
  • Heat map questions
  • Hot spot questions
  • Graphic slider questions
  • Timing questions
  • File upload questions
  • Answer choice display logic
  • Carry forward answer choices

Setting Answer Choice Display Logic

Answer choice display logic is used when you want to conditionally display certain answer choices in your survey.

Attention: Answer choice display logic is not compatible with in page display logic.
Example: For example, let’s say you’re running a survey for a hotel company and ask respondents to select all of the countries they’ve recently visited. In a follow-up question, you list all of your hotel locations and ask respondents if they stayed at that location when they visited. You can use answer choice Display Logic to hide hotel locations from respondents who did not visit a specific country.

Qtip: If you want to repeat a respondent’s selected answer choices across multiple questions, use carry forward instead. For example, let’s say you ask respondents to choose their favorite foods from a list. In the next question, you want them to rank their selected foods by preference. Instead of duplicating your question and adding display logic to every single answer choice, use carry forward to repeat the respondent’s selected choices in a new question.

  1. Click the arrow next to the answer choice you want to add display logic to.
    adding display logic to an answer choice by using the answer choice options menu
  2. Choose Add Display Logic.
  3. Click Add logic.
    New window where there's a dropdown for every answer choice. The one we chose is already expanded and there's a button there to start adding logic
  4. Set the condition that must be met for the answer choice to display. The condition can be based on any of the following:
    Building the condition for logic

  5. If you’d like, you can expand any of the other sections to add display logic to other answer choices.
  6. Click Save when you’re finished.
Qtip: For an in-depth resource to help build complex logic conditions, or for help troubleshooting your logic, see our using logic support page.

Editing & Removing Display Logic

Question Display Logic

After applying display logic to a question, a blue bar will appear. You can edit the display logic by clicking on the dropdown menu on the right of the blue bar and selecting Edit. To remove the display logic, select Remove.

the edit and remove option for display logic on a question

Answer Choice Display Logic

After applying display logic to the answer choices, an arrow will appear to the left of the answer choice. To edit display logic, click the dropdown menu to access the choice options list and select Edit Display Logic. To remove the display logic, select Remove Display Logic.

the edit and remove options for display logic on an answer choice

Hiding Questions with Display Logic

Have you ever decided that you wanted to remove a question or answer choice halfway through the study? You still want to be able to analyze the data, but you don’t want respondents to see it and respond to it anymore. You can accomplish this with display logic.

Warning: Once you’ve collected data, it is recommended never to delete answer choices or questions, as this can lead to invalidated data. Instead, you can hide unwanted choices and questions with display logic. This allows you to edit your live survey while also preserving your collected data.
  1. Select the question you want to hide.
    adding display logic to a question
  2. Select Display Logic.
  3. Using the first dropdown menu, select True – False.
    creating a false logic statement to hide a question
  4. Select False in the second dropdown menu.
  5. Click Save.

Qtip: You can hide answer choices as well! Use the same logic statement, but add it to an answer choice instead.

Since you’ve created a False logic statement, the question will never be displayed.

Qtip: You can also hide questions but retain their data using advanced question randomization under block options.

Using In Page Display Logic

If desired, select the In Page checkbox if you want the question to appear immediately once the condition is met, rather than displaying it on the next page of the survey.
the in page toggle in the bottom left of the display logic window

Attention: In page display logic is not compatible with answer choice display logic.
Example: Let’s take a look at in page display logic in action. In this example, we’re asking respondents if they have any children. If they answer “yes,” a second question dynamically appears asking them how many children they have.
a GIF showing in page display logic in action
Qtip: In page display logic may behave unexpectedly when used in conjunction with certain features. When this is the case, Qualtrics will display a warning letting you know which feature is causing the issue. This warning means that the question may not display properly to your respondents and could impact the survey taking experience. We recommend either disabling the other feature, or not using in page logic if you see this message.
the message that appears when you have validation on a question with display logic

Troubleshooting Display Logic

Below is a list of common errors and support resources to help you troubleshoot display logic.

Additional Resources

  • Using logic: This support page is a general guide on how to use logic in Qualtrics. The following sections of the using logic page are particularly helpful:
    • Creating conditions: This section walks through building a condition from scratch, breaking down each aspect of creating a condition.
    • Adding multiple conditions: As your survey grows more complicated, your logic likely will too. You may need to add multiple conditions to your display logic to make sure the right respondents are shown the right questions. This subsection shows you how to set up these multiple conditions correctly with multiple examples to help guide you.
    • Creating advanced logic with logic sets: Logic sets are sets of statements that are evaluated together. Logic sets allow you to say that if one group of statements is true AND/OR if another group of statements is true, then the condition is true. We recommend using logic sets as you start to add more conditions to your display logic since they make the logic easier to organize.

“Invalid Logic”

the invalid logic error on a question
This error appears when the display logic you set up is no longer valid. Usually, this is because the question or answer choice the display logic is based on has been deleted. If the question has been deleted, you can restore it from your trash and the display logic will also be restored. If restoring the question does not fix the display logic, you will need to rebuild the display logic.

Additional Display Logic Issues

ExpertReview will flag any survey questions with invalid display logic. ExpertReview looks for issues with survey methodology, and can identify issues that you may easily miss. For example, ExpertReview will flag if you’ve created display logic based on a question the respondent hasn’t yet seen. The survey editor won’t flag this issue, but ExpertReview will.

Check out this support page for a comprehensive list of issues with examples, and suggestions of how to resolve them.

Display Logic in Different Project Types

This type of question behavior is available in many different types of projects. The options described on this page are available in:

There are a few other projects that have access to  question behavior, but with unique functionality to keep in mind.

FAQs