Qwenvo

Conditional Logic in Forms: A Practical Guide With Examples

By the Qwenvo team · · 3 min read

Conditional logic changes a form depending on what someone answers. A rule has a When (a field, an operator and a value) and a Then (jump to a page, show or hide blocks, require an answer, or calculate a value). In Qwenvo you add one by typing / and choosing the Conditional logic block.

What a rule is made of

Every rule reads like a sentence: when this is true, do that. You can build the condition from several parts and combine them.

  • When: pick a field, an operator that suits its type, and a value. The value can be typed in or taken from another field. Add more conditions, group them, and combine them with all or any.
  • Then: Jump to page, Calculate, Require answer, Show blocks, Hide blocks, or Hide button to stop the form from being completed.
  • Calculate supports add, subtract, multiply, divide, assign, concat and formula, which is how prices and scores work.

Add your first rule

  1. Write the question that drives the rule, for example a Multiple choice asking 'How did you hear about us?' with an option 'Other'.
  2. Open the question's menu and choose Add conditional logic, or type / where you want the rule and pick the Conditional logic block.
  3. Set When to that question, the operator to 'is', and the value to 'Other'.
  4. Set Then to Show the blocks you want, such as a Short answer 'Tell us more'. Put those blocks on the page below.
  5. Click Preview and test both paths: choose Other, then choose something else.

Five rules that earn their place

  • Follow-up on a low score. When the Rating is below a number you pick, show a Long answer asking what went wrong. Pair it with the customer feedback form.
  • Skip a section. When 'Are you a returning customer?' is yes, jump to page 3 and skip the intro questions.
  • Require an answer only when it matters. When the contact preference is phone, require the phone number.
  • Different paths for different people. Applicants, partners and press each see their own page. The job application form is a good one to adapt.
  • Route by a hidden value. A rule can read a hidden field, such as a plan name passed in the link. See hidden fields.

How rules run, and why order matters

Rules replay from top to bottom every time an answer changes, and later rules win. If rule one hides a block and rule four shows it, the block shows. Put Calculated fields above the rules that use their results. Pages that no rule reaches are skipped, and required-field checks apply only to pages the respondent actually saw.

Mistakes to avoid

  • Contradicting rules. Two rules acting on the same block fight each other. Check the order or merge them.
  • Hiding a required question without an escape. If a hidden block is required, logic decides whether it counts; test it in Preview.
  • Too deep a tree. If you need four levels of branching, split the form into a few pages and give each page one decision.
  • Forgetting the thank-you path. Every path should end on the thank-you page.
  • Treating hidden values as secure. Values from the link can be edited by anyone, so never base pricing or access on them without checking server-side through a webhook.

Honest note: because later rules win and rules run in order, a long list of rules gets hard to read. Keep them short, name the pages, and test every branch. If your form is mostly a list of questions, you may not need logic at all.

Questions people ask

What is conditional logic in a form?

It is a set of if-then rules that change what a respondent sees or what the form calculates, based on their earlier answers.

How do I show a question only if someone picks a certain answer?

Add a rule with When set to the earlier question and Then set to Show blocks, then choose the follow-up question. The full list of actions is in the conditional logic help article.

Can logic send people to a different page?

Yes. Use Jump to page. See the multi-step form guide for pages and progress bars.

Is conditional logic free?

Yes, unlimited, with no plan to unlock. Compare how other tools handle it on the Qwenvo vs Tally page.

Every feature, $0, no card.

Try conditional logic free