- [Instructor] Branching rules allow you
to customize the flow of your survey.
You can show or hide questions,
choose to navigate to another question or survey,
or even open a website based on the response to a question.
Branching rules make your surveys interactive,
and ensure that only relevant questions
are displayed to respondents.
For this example, we'll use two surveys,
one we'll use basic branching rules
that we'll skip questions based on a response,
and the other will use advanced branching rules
that use variables to show and hide questions.
You've created a survey that tracks customer satisfaction
for their stay in a hotel.
The survey contains questions to gather feedback
about the overall stay and it's in-house restaurant.
The questions about the overall stay,
and the restaurant are in their specific sections.
Let's now create branching rules to skip a question
as per the response.
In the Design tab of the survey,
open the Customization pane, and select Branching,
then select Customize.
Enter a name for the rule and select Add condition
under Primary rule conditions.
Select question from the first dropdown list,
and select the question that asked the respondent
to select an area for providing feedback
that is overall stay or restaurant.
From the select operator list select is equal to,
and select overall stay in the dropdown list.
Select Add if true,
and then select add action to navigate to the question
to display when the condition is true.
From the select action list, select Navigate To.
From the select target list, select Question.
From the select value list, select the question
that asks feedback for the overall stay.
As the question for overall stay is before
the question for a restaurant,
we must ensure that the question for restaurant
is not displayed when the respondent clicks next.
Select add action.
From the select action list, select hide.
From the select target list, select question.
From the select value list, select the question
that asks feedback for the restaurant.
Now save the changes.
Similarly, create one more branching rule
to navigate the respondent to the question
for restaurant when he or she wants
to provide feedback for the restaurant.
The basic branching rules to skip a question are created.
Preview the survey to test the rule.
If you select overall stay,
the question asking for the feedback
on the overall stay's displayed.
And the other question is skipped.
If you select restaurant, the question asking for feedback
on restaurant is displayed,
and the other question is skipped.
You've created a survey that takes feedback
for a purchased product.
The company sells three products, a laptop, keyboard,
and e-reader.
You have created a variable named product,
and used it in the questions.
The survey variable can be populated through Power Automate
when you send the survey,
and the product name will be automatically inserted
in the questions.
The survey contains a rating question,
three multiple choice questions to capture feedback
for each product.
A choice question that asks for capturing more details,
and a text question to capture an email address,
if the customer wishes to share.
Multiple choice questions and text-based questions
are marked as hidden on the survey.
Let's now create branching rules to show and hide questions
as per value received in the variable
through Power Automate.
Open the customization pane,
and select branching, select customize.
Enter a name for the rule and select add condition
under primary rule conditions.
Select survey variable from the first dropdown list,
and select the variable name product.
From the select operator list select is equal to,
and enter laptop in the text box.
Select add if true,
and then select add action to show the question
to display when the condition is true.
From the select action list, select show.
From the select target list, select question.
From the select value list,
select the multiple choice question
to be displayed for laptop.
Select add if false and then select add action
to hide the question when the condition is false.
Save the changes.
Similarly, create two more branching rules
to show the respective questions for keyboard,
and e-reader respectively.
Create one more branching rule to ask if the customer
wants to be contacted,
and show the question to capture their email address.
For testing the branching rules,
enter the variables default value,
say keyboard and send an email to yourself.
Open the survey to see that the question for keyboard
is displayed and questions for laptop and E-reader are not.
When you send a survey by using Power Automate.
The multiple choice question is displayed
only for the product for which the survey is sent.
You can now create branching rules and send surveys
to your recipients.