Skip to content

Show a question only when it applies

Conditional logic asks a question only when earlier answers match: how to add a rule, the comparisons for each type, AND and OR, and examples you can copy.

Polzy team6 min readUpdated 13 Nov 2026
On this page
  1. 1Add a rule
  2. 2Which questions a rule can test
  3. 3The comparisons
  4. 4AND or OR
  5. 5Examples
  6. 6What a rule does, and does not
  7. 7Troubleshooting

Give a question a rule and the survey asks it only when the respondent's earlier answers match — "What made it hard?" only for people who rated their onboarding 2 or lower, say. Everyone else never sees it, and a required question their answers hide never holds them up.

Conditional logic is on every plan. Only Admins edit a survey's questions.

Add a rule

  1. Open the survey in the builder and click the question that should only sometimes be asked.
  2. Choose its Logic tab.
  3. Turn on Enable conditional logic — "Ask this question only when earlier answers match".
  4. Choose Add condition. In the row that appears, pick the Earlier question, the Comparison and the Answer.
  5. For a second test, choose Add condition again, and pick AND or OR between the two.
  6. Read the sentence under the conditions — Shown when … — to check the rule names the right question and answer.
  7. Choose Save draft, or Save changes on a live survey.
A rule on the Logic tab: two conditions joined by OR, Add condition, and the "Shown when" sentence that reads the rule back.

The closed question then shows "↳ Logic" in the list, so you can see at a glance which questions have a rule. Turning Enable conditional logic off deletes the rule's conditions; Undo brings them back.

Which questions a rule can test

A condition can only test a question that comes before this one and that people answer. Headers, statements and hidden fields are not offered. On the first question there is nothing to test, and the box says No questions available.

A move that would put a question before the answer its rule tests asks first. Moved anyway, its Logic tab shows the condition as one that tests a later question, with its remove, and the survey is neither saved nor published until you remove the condition or move the question back below the one it tests.

The comparisons

The comparisons on offer depend on the type of the earlier question:

ComparisonOffered forThe condition holds when
Equalsevery typethe answer is the value. On a Multi select or a Matrix, one of the chosen options is it.
Not equalsevery typethe answer is not the value — and also when the question was not answered. On a Multi select or a Matrix, none of the chosen options is it.
Is any ofSingle select, Dropdown, Yes or no, Multi select, Picture selection, Rankingthe answer is one of the options you pick. On a Multi select, one of the chosen options is one of them.
Is emptyevery typethere is no answer: the question was skipped, or its own rule hid it.
Is not emptyevery typethere is any answer.
ContainsShort text, Long text, Email, Phone, Websitethe answer includes the text you type.
Starts withShort text, Long text, Email, Phone, Websitethe answer begins with it.
Ends withShort text, Long text, Email, Phone, Websitethe answer ends with it.
Greater thanRating, Opinion scale, CSAT, CES, NPS, Slider, Numberthe number chosen is above the value.
Less thanRating, Opinion scale, CSAT, CES, NPS, Slider, Numberthe number is below it.
Greater than or equalRating, Opinion scale, CSAT, CES, NPS, Slider, Numberthe number is the value or above.
Less than or equalRating, Opinion scale, CSAT, CES, NPS, Slider, Numberthe number is the value or below.

Text is compared without regard to capitals: "Slow" matches "slow". Apart from Is empty, Is not empty and Not equals, a condition on a question that was not answered never holds.

The Answer box adapts to the question: for Single select, Dropdown, Yes or no, Multi select, Picture selection and Ranking you pick one of its options; for a Matrix you pick a statement and an answer together, such as "Pay is fair — Agree" (the rule keeps their keys, row_1:column_3); for a Rating, an Opinion scale, CSAT, CES, a Slider or a Number you type a number within its range, for NPS from 0 to 10; for Consent you choose Checked or Not checked; for anything else you type the value — a Date as 2026-11-30.

A rule on a choice keeps the option it names, not the option's words: reword an option, or offer the survey in several languages, and the rule still holds. For Is any of, pick every option that should count.

AND or OR

  • AND. The question is asked only when every condition holds.
  • OR. The question is asked when at least one of them holds.

A rule has one of the two for all its conditions: switching one join switches them all. Mixing them — "A, and either B or C" — is not possible in one rule.

Examples

You want to…Put the rule onCondition
Ask why only when someone is unhappy"What made it hard?" (Text)"How was your onboarding?" (Rating) Less than or equal 2
Thank your promoters"What do you like most?" (Text)"How likely are you to recommend us?" (NPS) Greater than or equal 9
Ask about a tool only its users know"How well does Jira fit your work?" (Rating)"Which tools do you use?" (Multi select) Equals Jira
Ask about a session only those who chose it"What would you like the speaker to cover?" (Long text)"Which session will you join?" (Dropdown) Equals Morning workshop
Ask why when someone disagrees with one statement"What would make pay fairer?" (Long text)"How far do you agree?" (Matrix) Equals Pay is fair — Disagree
Ask for details only with permission"How can we reach you?" (Contact info)"May we contact you about your answers?" (Consent) Equals Checked
Catch anyone unhappy on either question"What should we change first?" (Text)Rating Less than or equal 2 OR NPS Less than or equal 6

What a rule does, and does not

A rule shows or hides one question. A survey does not jump to another page, end early or lead to a different ending: everyone moves through the same list, minus the questions their answers hide.

  • On both layouts. On a survey shown one question per page, a hidden question's page is skipped. On a survey shown all on one page, questions appear and disappear as people answer.
  • Required questions. A required question that its rule hides is never asked, so it never blocks anyone.
  • Small groups. Every condition splits your respondents. A question few people see may fall under your privacy floor, and its results stay hidden until enough people have answered it.
  • Follow-ups. The same Logic tab holds dynamic follow-ups, which ask about an answer rather than hide a question.

Headers and statements cannot have a rule of their own.

Troubleshooting

  • No questions available. The question is first in the survey, or only headers, statements or hidden fields come before it. Move it below a question people answer.
  • The Comparison list is greyed out. Choose the Earlier question first.
  • The question never shows. Check AND against OR, the value (a 5-point Rating has no 6), and that the tested question comes first. If the tested question has a rule of its own and was hidden, its answer is empty.
  • It shows for everyone. The rule has no complete condition: a condition without an Earlier question is ignored, and a rule with none asks the question every time.
  • Test it. Open Fullscreen preview and answer as different people would; the preview follows the rules exactly as the survey page does.
  • Check this rule: choose the answer again from the list, under a condition. The rule was written as text before rules kept their options, or names an option that was removed since. Until you choose the answer again, the survey keeps comparing that text. Choose it from the list and save.
Was this helpful?
Still stuck?

Signed-in members can ask Polzy or message the team from Support. How fast we reply depends on your plan.