Changing the run-time order of questions in a questionnaire
Conditionally skip or revisit questions at run time by adding a branch to a questionnaire. By branching questionnaires, you provide flexibility and promote reuse of existing assets, such as question pages.
For example, in a shopping application, you can define a condition that skips a set of questions directed towards new customers if a customer reports making purchases in the past. If the customer indicates an interest in providing feedback about their previous purchases, the questionnaire displays questions about their satisfaction with the service. For a new customer, your application loads a set of questions about how the customer found out about your company.- Navigate to the questionnaire:
Choices Actions Open the questionnaire in App Studio - In the navigation pane of App Studio, click Case types.
- In the list of case types, open a case type of the Questionnaire type that you want to edit.
Open the questionnaire in Dev Studio - In the header of Dev Studio, click .
- Click the questionnaire that you want to edit.
- On the Questionnaire tab, click .
- In the Branch field, click Click here to edit page title, and then enter a unique name for the branch, for example Returning customer.
- In the Branching conditions pane, in the When section, click Click to add condition.
- Create a condition by providing a value to compare at run time, a comparator, and a value to compare against the first value.
- Optional: To add more rows in the condition, click Add a row.
- If you create multiple rows, define whether an answer needs to meet all or any conditions by selecting either and or or between the rows.
- Click Submit.
- In the Go to list, define what happens when the condition
evaluates to true:
- To move to a specific questionnaire item, select the item in the list.
- To exit the questionnaire, select Exit Survey.
- Optional: To define more conditions, click Add path, and then repeat steps 4 through 9.
- In the Otherwise go to list, define what happens when the
condition returns a false value:
- To move to a specific questionnaire item, select the item in the list.
- To exit the questionnaire, select Exit Survey.
- Click Save.
Previous topic Displaying a warning in a questionnaire Next topic Displaying a block of text in a question page