Create and Manage Conditional Logic
Harness the power of Conditional Logic in form creation to streamline your workflows. This guide offers detailed steps on how to create, manage, and test rules that adapt based on user responses, making your forms dynamic and responsive. This topic describes how to effectively use Conditional Logic to enhance the field user experience and boost efficiency.
Available on the Advanced and Enterprise tiers:
Contents
About
Conditional Logic works on an “If This, Then That” basis, meaning you can automate your forms to respond differently based on the input provided. It's a useful way to guide field users through a workflow that is specific to their situation.
For instance, you might want to hide certain form sections until a specific option is selected, or make a form field required based on another field’s answer. These rules can be viewed, created, copied, deleted, and even deactivated for testing purposes.
The topic provides detailed instructions on how to manage these rules, including locating them in the Web Portal and Form Builder, configuring new rules, and removing or duplicating existing ones. It emphasizes the need to test forms thoroughly after any changes to ensure they function as expected.
Overall, Conditional Logic is a powerful tool for creating dynamic, responsive forms that adapt to user input. Read more general information about Conditional Logic.
View a Form's Existing Conditional Logic Rules
Conditional Logic rules define how the mobile form behaves (what parts of the form are hidden, shown, required, etc) based on the information provided by mobile users.
When Viewing a Form in the Web Portal
When you have a form with a lot of Conditional Logic rules and want an overview, this is the easiest way to see all of your Conditional Logic rules in a condensed form.
-
Locate the desired form in the web portal.
-
Navigate to the Pages & Questions tab for that form.
-
Scroll down to the bottom of the page, after the table displaying the pages and questions.
-
View all of the Conditional Logic rules at the bottom, under the Conditional Logic header. Each Logic Element header shows a single rule, with its name, description, and behavior.
- Edit the form to open it in the Form Builder.
- Navigate to the Conditional Logic tab.
- Each of the Conditional Logic rules is listed in the left navigation.
- Select a rule on the left to view the details on the right.
Create a Conditional Logic Rule
Conditional Logic rules define how the mobile form behaves (what parts of the form are hidden, shown, required, etc) based on the information provided by mobile users.
- Edit the form to open it in the Form Builder.
- Navigate to the Conditional Logic tab.
- Select the Add a Rule button in the left navigation.
- Configure your rule.
Note: To make sure your Conditional Logic rules work as intended in the field, test them thoroughly before you deploy the form. Test the form under a variety of conditions to validate the field user experience.
Delete a Conditional Logic Rule
If you would like to permanently remove a behavior from your form, delete the desired Conditional Logic rule. Keep in mind that this will affect how the mobile form looks, as well as what information it requires from your field users. It is a good idea to test the form thoroughly after removing a rule.
-
Edit the form to open it in the Form Builder.
-
Navigate to the Conditional Logic tab.
-
Select the desired rule from the left navigation.
-
On the right, scroll down to the bottom of the rule.
-
Select the Delete Rule button, and select it again to confirm.
-
The rule will be removed.
Copy a Conditional Logic Rule
If you are building a form with multiple pages containing the same questions and requirements, you may need to copy Conditional Logic rules. To copy a Conditional Logic rule:
-
Edit the form to open it in the Form Builder.
-
Navigate to the Conditional Logic tab.
-
Select the desired rule from the left navigation.
-
Select the Rule Menu icon next to the rule name.
-
Select Copy Rule:
-
The new copy of the rule will appear in the left navigation with a number added to the end of the name:
Note:If you copy a page or section with self-contained Conditional Logic rules (i.e., all conditions and effects are contained within the page or section being copied) then the Conditional Logic will also be copied.
Deactivate a Conditional Logic Rule
You may want to deactivate Conditional Logic rules for testing purposes yet retain the rule configuration in the form. By default, a rule is active.
To deactivate a Conditional Logic rule:
-
Edit the form to open it in the Form Builder.
-
Navigate to the Conditional Logic tab.
-
Select the rule from the left navigation.
-
Toggle Rule Active to the off position (left).
Info:The icon next to the rule name in the left navigation indicates an inactive rule. The topic Viewing Form Details describes the Pages & Questions tab, which also indicates inactive rules.