UserHero Docs
Forms

Conditional logic

Show a question only when an earlier answer matches a specific value, so respondents only see what's relevant to them.

Conditional logic

Conditional logic lets you show a question only when an earlier answer matches a value you choose. Questions without logic are always shown.

How it works

Open a question in the Build tab and choose Add logic. You'll set a single rule:

Show this question when [an earlier question] is [a value].

If the rule matches the respondent's earlier answer, the question appears. If it doesn't match, the question is skipped.

What you can use as a trigger

The triggering question must come before the question you're adding logic to, and it must be one with a fixed set of answers to choose from:

  • Single choice — any of its options.
  • Dropdown — any of its options.
  • Yes / No — Yes or No.
  • Rating — any value on its scale (for example, a specific number from 0 to 10 on an NPS rating).

Text, number, email, and date questions can't be used as triggers, because they don't have a fixed list of answers to match against.

A rule matches on an exact value — for example "show when Plan is Enterprise," or "show when the rating is 10." It checks whether the earlier answer equals the value you picked; it doesn't match ranges like "9 or higher" or "less than 7."

A worked example

Imagine a satisfaction survey:

  1. How satisfied are you? (a Yes / No or choice question)
  2. What went wrong? — add logic so this only appears when the first answer is No.
  3. What did you love most? — add logic so this only appears when the first answer is Yes.

Each respondent then sees just the follow-up that fits their answer.

Editing or removing a rule

Reopen the question and choose Edit logic to change the trigger or value, or Remove logic to make the question always shown again.

If you have only one rule per question, that's expected — each question supports a single condition.

Next steps

On this page