Loading...
  • Customer Experience
    Customer Experience
  • Employee Experience
    Employee Experience
  • Brand Experience
    Brand Experience
  • Product Experience
    Product Experience
  • Core XM
    Core XM

Display Logic

What's on This Page:


Was this helpful?


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.

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.
Qtip: Want to watch a video on how to use Display Logic? Visit Configuring Your Project on XM Basecamp for a guided learning experience. Access is included as part of your Qualtrics account.

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.
    The question options dropdown reveals an Add Display Logic button
  2. Click the gray gear to the left.
  3. Select Add Display Logic…

    Qtip: Instead of steps 1-3, you can also click Add Display Logic on the editing pane under Actions.
    A question is selected. On the question editing pane to the far-right, there is an Add Display Logic button
  4. 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 for display logic. the first dropdown is expanded to see all the fields for creating conditions

  5. 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.
    adding display logic. click the in page option to enable in page display logic
  6. 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.

Screenshot. The question you're applying the logic to is Q7. You're creating logic with Q6. A gray warning appears along the bottom saying the feature is incompatible

Example: In the screenshot above, the display logic is based off Q6, which is a constant sum question, so in page functions can’t be applied. It does not matter whether the question with the display logic on it, Q7, is constant sum or not.

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

  • Loop & Merge
  • Skip Logic
  • Multiple Choice – Dropdown List
  • Pick, Group, and Rank
  • Drill Down
  • Constant Sum
  • Side by Side
  • Rank Order
  • Heat Map
  • Hot Spot
  • Graphic Slider
  • Timing
  • File Upload

Setting Answer Choice Display Logic

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

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. Select the answer choice you want to add Display Logic to and click the blue arrow.
  2. Choose Add Display Logic.
  3. Set the condition that must be met for the answer choice to display. The condition can be based on any of the following:

  4. Click Save when finished.
Qtip: For an in-depth resource to help build complex logic conditions, or for help troubleshooting your logic, consult 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 arrow on the right of the blue bar and selecting Edit. To remove the Display Logic, select Remove.

Display logic appears as a blue banner above the question. From the dropdown arrow on the far right, there is an Edit and a Remove option

Answer Choice Display Logic

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

A choice with display logic is selected. From the dropdown arrow, Edit Display Logic can be edited.

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.
  2. Click the gear icon.
    the add display logic choice after clicking the gear icon on a question
  3. Select Add Display Logic.
  4. Using the first dropdown menu, select True – False.
    setting up a true/false statement. true - false is selected as the field and false is selected as the value
  5. Select False in the second dropdown menu.
  6. Click Save.
Qtip: You can hide answer choices as well! Click the blue arrow next to an answer choice and then select Add Display Logic to add Display Logic to the answer choice. For your logic statement, you’ll use the same one as steps 4 and 5.

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.
In the bottom-left, In Page is selected

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 error that appears when in page display logic is used with an incompatible feature. the error reads "in page display logic may behave unexpectedly with validation options"

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 display logic on a question in the survey editorThis 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.

FAQs