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.
Set one group of respondents to skip over multiple pages
-
Let's continue with the campus survey example above. It has four pages that are only meant for students and one for staff only. At the end of the survey, there's a joint demographic page.
First, add a new rule.
-
Select "Page" as the target type and then choose the correct page from the drop-down. The triggering question ("Who are you?") and answer ("Student") remain the same.
-
Click Duplicate rule.
-
Change the target to the second page that's only for students.
- Repeat steps 3-4 for each page you want to show only for students.
-
Then let's hide the staff questions only -page from students using the same logic.
- Since you want all respondents to see the last page that contains demographic questions, do not set any branching rule related to it. Finish by clicking "Save rules". Preview and check that everything works!
Adding two conditions to the same rule
-
Let's continue using the above college campus example. Page 3 of the survey is meant only for those students who live on campus. On the first page of the survey the respondents already say if they are students or staff.
-
We want to add a second condition to this so on page 2, we have a question about how the respondents commute to the campus. Click "Add condition" and then select the question ("How do you commute to campus") and triggering answer ("I live on campus")
- Save rules and check in Preview that it works.