Conditional Logic
In this article you will learn how to apply conditional logic into your forms.
Conditional logic allows forms to trigger activities base on input conditions. Due to actual conditions, the feature would show/hide or change values of elements.
The Example
This is a very simple example of how to use conditional logic: I need to show a selection field if one checkbox field is checked.
“Beverage menu showed if customer checks Wanna drinks?”
Demo
To do this:
Step 1: Create all fields: Foods, Wanna drink?, Drinks
Step 2: Edit Drinks field, in Editor Settings tab, open Conditional Logic, Enable
Step 3: Add Item, Set condition: Show this field if Wanna drink? checked.
Now save the form to finish.
Options of Conditional Logic
There are some options in coditional logic feature for various demands:
– Speed: speed of the action triggered
– Easing: swing or linear
– Action: show/hide or set value
– If: select condition based field
– Comparison Operators: not empty, empty, equals, not equals, >, >=,<,<=, checked, unchecked or contains
– OR, AND Operators: set relation between conditions
Conditional Logic for Sections
Conditional logic for section is located in Editor Advanced tab:
Edit Section > Advance Tab > Conditional Logic > Click Enable
The feature is useful to build highly interactive form with viewers, promote higher conversion rate.