Conditional Form — Show or Skip Form Fields Based on Answers

A conditional form adapts to each user's answers: skip irrelevant questions, show deeper follow-ups only when needed, and keep the experience tight. quiz-ui handles this with branch rules on each step — the form flows where the answers lead.

Last updated: 2026-09-25

Frequently asked questions

  • How is conditional logic different from branching?

    They're the same thing in quiz-ui. A conditional step is just a step with branching rules — the engine routes to the right next step based on conditions.

  • Can I conditionally show multiple steps?

    Yes. Each step evaluates its own branch rules. A single answer can cause the funnel to skip several steps at once.

  • Do I need to write if/else in my component code?

    No. Conditional logic lives in the branch rules on your QuizDefinition — the component code stays clean.