Set up logic and branching

Use logic to send people through the right path and skip irrelevant questions.

Learn how to set conditional logic, branching rules, and display logic. Includes skip-logic examples, AND/OR rule groups, and ways to keep your flow easy to review.

Last reviewed
survey-designlogicbranchingadvanced10-30 minutesIntermediate to AdvancedResearchersSurvey designers

Before you start

Open your survey in Build and decide which earlier answers should control later questions. To add branching from a question, save at least three questions: the current question and two other questions for routing. This prerequisite applies to branching, not every display-logic rule. List any URL parameters you want to use.

Edit questions and check the flow (classic editor)

A three-question fictional demo shows a configured branch and fallback path using actual English-interface screenshots, generated English narration, and English/Japanese captions. This narrated screenshot sequence shows the saved rule, flow canvas, and Preview; it is not a continuous recording. This walkthrough shows the classic editor. Your account may show different controls; follow the written steps for your editor.

Download video
Read the video transcript

In Questions, click Add to choose the question type that fits the evidence you need. Select a question and open Advanced Edit to configure its answer choices, validation, and display settings. Open Logic to add display or branching rules. Check both the matching path and the fallback path. In Build, choose Survey Flow to inspect how questions connect across your survey. Test each branch in Preview with different answers before publishing.

Steps

  1. Open the branching rules

    In Build, select a question. If its card has a Logic button, click it to open the side panel; in the classic editor, open the question’s logic options. Add rules that evaluate earlier answers.

    English interface · Q1 sends Every day answers to Q2, What would you improve? All other answers skip to Q3, overall product satisfaction. Classic editor shown.

  2. Set conditions with AND/OR groups

    Create rule groups with AND when all conditions must match. Use OR when any condition can match. Then combine the groups with All or Any.
  3. Use display logic

    Use display logic to show or hide a question based on earlier answers. Use branching when you need to change the respondent's path through the survey.
  4. Combine with AI interview modes

    Text AI interviews support an AI Decides question mode. In this mode, the AI decides when to stop follow-up questions based on your guidance criteria. This works alongside branching logic by controlling depth inside one interview question. Voice interviews are time-based only.
  5. Use carry-forward for follow-ups

    Use carry-forward to fill a follow-up question with only the options the respondent selected or did not select in an earlier question.
  6. Set quotas to cap segments

    Use quotas to set response targets for each option. When a quota bucket is full, new respondents in that segment are terminated automatically.
  7. Validate with the flow canvas

    Use the survey flow canvas to review every branch and check for dead ends.

    English interface · Every day answers follow Q1 → Q2 → Q3; other answers follow Q1 → Q3. The fictional demo has a saved branching rule. Classic editor shown.

Details and limitations

Use branching based on earlier answers to ask relevant follow-ups and skip irrelevant sections. QuestionPunk supports AND/OR rule groups for more complex conditions.

Display logic shows or hides individual questions without changing the overall path. Branching rules send respondents to different sections of the survey.

Carry-forward fills a follow-up question dynamically based on which options the respondent selected or skipped earlier. This helps you avoid repeating long option lists.

Quotas let you set numeric targets for each answer option or URL parameter value. When a bucket is full, new respondents in that segment are terminated automatically, with an optional custom end screen.

URL parameter-based display logic lets you show or hide questions based on values passed in the survey link as embedded data. This is useful for panel routing and A/B testing.

For adaptive depth inside a single question, text AI interviews support an AI Decides mode. The AI stops probing when it has enough information based on your guidance. You set the minimum and maximum follow-ups and the stopping guidance.

Test every branch with Preview and synthetic answers before you publish. Synthetic answers are for testing only, not evidence from real participants.

Fix logic before publishing: when Publish finds problems, Fix before publishing lists them. If some are broken logic rules the app can repair, it shows how many can be fixed for you and a button such as Fix 2 automatically; those rows carry an auto chip. After the fixes run, it reports how many were fixed and how many need you, with Try publishing again. Check the repaired rules in Logic and Preview before you share the survey. Warnings alone do not stop you publishing.

Check the result

You should have rules that show, hide, or redirect respondents based on the conditions you set. In Preview, each test path should reach the expected next question or section.

If something goes wrong

If Add Branching Logic is unavailable, confirm the question type supports branching and at least three questions are saved. If a question does not show or route correctly, check the referenced question, the AND/OR conditions, and whether the groups are combined with All or Any. Test both matching and fallback answers.