Branching Logic can be used within your form to customize the behaviour of a form based on the responses that a user gives to a question within the form. For example, when a user selects Choice A from one question, you can choose to hide the following question, if it no longer applies given the previous response.
Choose to add Branching Logic if you wish to perform an action within your form. This could be based on a given response to a question, whether a selection to a multiple choice, or checkbox, for example, or a specific response to a text response question.
To add Branching Logic to a form:
Every branching logic condition has an action that will occur when the Rule Conditions have been met. The available actions are divided into 3 logic types:
Option | Brief Description |
Skip to Page | Select a future page in your form to skip to once the Condition has been met and the user attempts to proceed to the next page. |
Complete the form | Return to the application page. This will mark the current task as "Complete". Based on the Rule Action you can state that when the user selects their responses and attempts to proceed to the next page they will be redirected out of the form and the task will be marked as complete. |
Terminate the form | Return to the application page. This will mark the task as "Incomplete". Based on the Rule Action you can state that when the user selects their responses and attempts to proceed to the next page they will be redirected out of the form and the task will be marked as incomplete. |
Skip to a Random Page | Enter page numbers separated by commas. Once the condition has been met and the user proceeds to the Next page. They will be sent to a random page based on your list. |
Option | Brief Description |
Hide a question | Based on a response, hide a question from the user. |
Show a question | Based on a response, show a question to the user. NOTE: The question selected to show will automatically be hidden until the Rule Condition has been fulfilled. |
Disable a question | Disabling a question will make it so that its choices and variables cannot be selected, e.g. grayed out. |
Mark as an invalid question | Marking a question as invalid will make it so that an error message appears above that question preventing the user from continuing to the next page or submitting the form. The error message that appears can be customized. |
Hide a page | Based on a response, hide a page from the user. TIP! Use this action if there are multiple questions that you wish to hide based on a user's response. You can add all of these questions to a page. |
Option | Brief Description |
Redirect to a URL | Redirect the user to a website based on a given response. This action will occur when they click Next or Submit. |
Randomly Traverse a Page Range | Enter page numbers separated by commas. The user will proceed through all pages, however, the order of the pages will be randomly chosen. |
There are many possible use cases in which you may choose to use Branching Logic within your form. The below scenarios will walk through how to set up these various use cases.
For this scenario, we will walk through how to Terminate the form for a user so that based on a certain response they will be redirected to the main Application page and the task will remain Incomplete.
For this example, we want to ensure that the applicant has completed a certain action. For example, "Have you completed your CPR training?" The applicant can then choose from the available multiple choice responses, Yes or No.
In order for the applicant to complete the rest of the form, they must have obtained their CPR training. Therefore, if they answer No to the question they will be unable to proceed and will be redirected out of the form. However, they may have time to complete their training and therefore will still be able to enter the form and change their answer at a later date.
To set up a rule that will Terminate the form given a certain response:
Another common scenario is to show questions based on a certain response to a question.
Expanding on the example above, applicants are presented with the Multiple Choice question, "Do you have any other certifications?" where the applicant can select either 'Yes' or 'No.'
Using Branching Logic, you can state that if the applicant selects 'Yes', then the Question "Please list other certifications below." will appear. However, prior to the response being selected the question will not be visible by default.
The setup of this is:
This scenario also follows the Show a Question action for branching logic. However, in this scenario, we don't want to show another question we just want to show additional information or text. If this is the case you can add a Section Heading to your form directly below the affected question.
Using the same example of Terminate the Form we want to ensure that an applicant has completed their CPR training, and if they haven't then they will be redirected out of the form. However, we want to let them know why they will be redirected out of the form. To do so, we can add a Section Heading question to the form that will double as a warning message that says:
"We require that you have completed your CPR training in order to complete this form. If you have not completed your training you will be redirected out of the form and will be unable to proceed until the training has been completed."
As we only want this to show if they have selected No, we can use the Show Question branching logic to show the Section Heading question text when No is selected.
To add this rule:
In some cases, you may require a question to be permanently hidden in the form so that it is no longer visible to your users. A common reason is if your application requirements have changed and the question is no longer applicable. This ensures that the question and previously collected responses are not deleted from the form.
To set up this scenario: