Apply

How to use Advanced Branching Logic to Dynamically Change your Form

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:

  1. Click the Advanced Branching Wizard icon 
  2. Click the Add Branching Rule button to add a new rule
  3. Under the Rule Condition, select a filter from the drop-down. The question chosen will trigger the branching rule.
  4. Optional: Add additional rules by clicking the Add Rule icon. If you choose to add more than one condition you can select ANY or ALL conditions to be met in order for the logic to occur.
  5. Under Rule Actions, click the Select an action drop-down
  6. Select an action from the list
  7. Enter many actions by clicking on the next line that appears after you’ve entered the first action.
  8. Click Save Rule when you’re done. You will return to the main branching logic page where you can set up more rules. You can also drag and drop the existing rules to reorder them in the list to keep them organized.
  9. Once you have set and saved all your rules individually, Click Save on the Main Branching logic page
  10. Save the form in order for these changes to appear to your users.
Screenshot highlighting the Advanced Branching Wizard icon.

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:

OptionBrief Description
Skip to PageSelect 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 formReturn 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 formReturn 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 PageEnter 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.
OptionBrief Description
Hide a questionBased on a response, hide a question from the user.
Show a questionBased 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 questionDisabling a question will make it so that its choices and variables cannot be selected, e.g. grayed out.
Mark as an invalid questionMarking 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 pageBased 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.
OptionBrief Description
Redirect to a URLRedirect the user to a website based on a given response.
This action will occur when they click Next or Submit.
Randomly Traverse a Page RangeEnter 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:

  1. Click the Advanced Branching Wizard button at the top right of the form
  2. Click the Add Branching Rule button to add a new rule
  3. Set up the Rule Condition
    i. Click on the Filter dropdown and select the question "Have you completed your CPR training?" from the dropdown.
    ii. Set the Parameter to "Value Is Exactly"
    iii. Set the Item of the filter to "No"
  4. Set up the Rule Actions
    i. Click on the Action dropdown and select Terminate the form
Example of a branching rule that will Terminate the form given a specific 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:

  1. Click the Advanced Branching Wizard button at the top right of the form
  2. Click the Add Branching Rule button to add a new rule
  3. Set up the Rule Condition
    i. Click on the Filter dropdown and select the question "Do you have any other certifications?"
    ii. Set the Parameter to "Value Is Exactly"
    iii. Set the Item of the filter to "Yes"
  4. Set up the Rule Actions
    i. Click on the Action dropdown and select Show a Question
    ii. Select the question you wish to show: "Please list other certifications below."
Example set up of branching logic that shows a question based on an exact response to a question.

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:

  1. Click the Advanced Branching Wizard button at the top right of the form
  2. Click the Add Branching Rule button to add a new rule
  3. Set up the Rule Condition
    i. Click on the Filter dropdown and select the question "Have you completed your CPR training?" from the dropdown.
    ii. Set the Parameter to "Value Is Exactly"
    iii. Set the Item of the filter to "No"
  4. Set up the Rule Actions
    i. Click on the Action dropdown and select Show a Question
    ii. Select the question the action should occur for: "We require that you have completed your CPR training..."
Example set up of branching logic that shows a message based on a response to a question.

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:

  1. Click the Advanced Branching Wizard button at the top right of the form
  2. Click the Add Branching Rule button to add a new rule
  3. Set up the Rule Condition
    i. Click on the Filter dropdown and select the first question in your form.
    ii. Set the Parameter to "Value has a response"
    iii. Click Add Rule
    iv. Click on the Filter dropdown and again select the first question in your form.
    v. This time set the parameter to "Value has no response"
    vi. Set the rules so that "Match Any of the following rules" is selected
  4. Set up the Rule Actions
    i. Click on the Action dropdown and select Hide a Question
    ii. Select the question you wish to hide
Example set up of branching logic that hides a question based on a response to a condition.