Want only some respondents to see a question? This article walks through a simple example of branching logic: showing a follow-up question only when an earlier answer on the same page matches (for example, asking only students which year they are in). For the full overview, see Show questions based on previous answers (Branching logic).
Branching rules or logic allow you show or hide entire pages or individual questions based on a respondent's answers to specific questions. This means you can further tailor the questionnaire experience and ensure that respondents only see the most relevant content.
-
We recommend completing the entire questionnaire structure before adding any branching rules. This will help you maintain a clear overview of the questionnaire flow and avoid potential conflicts.
In this campus survey example, the first page of the survey has the question "Who are you?" with the response options being "Student" and "Staff". We want to ask only the students which year they are in. Create the survey page the same way you would normally. Then select Settings from the top bar.
-
Go to the Branching logic tab.
-
Click the Add rule button to start creating new rules.
- Our target is the question "Which year you are in?". It's on the same survey page as the triggering question, so we choose "Element" as the type.
-
We want to show the target question only when the triggering condition is met. The condition is the response "Student" in the question "Who are you?".
- Click Save rules.
-
Check in Preview that the condition works as it should.