Rules are triggered by Conditions and once triggered they execute one or more steps.
In order to use Rules, you must first enable the "Logic" feature within the Settings screen.
Rules can be set up within the Logic screen and to add a rule, you simply need to click the 'Add Rule' button and then configure it:
- Is active flag (active by default)
- Condition check method - defines whether all conditions or just one condition must be met before a rule will be triggered.
- Run Once flag (inactive by default) -defines if the rule is fired once, on all form data load, or constantly after the user makes a change in the form.
Rules where the 'Run Once' flag enabled change the default state of an object (field, section etc.) To know more please look at the example below.
Rules can be copied or deleted and their order can be changed using drag & drop. To help navigate through the rules they are collapse by default - this helps working with complex forms that have lots of Rules. You can drag and drop them, expand them and collapse (one by one or all at the same time.)
What is a difference between rule with and without flag 'Run Once'?
In the following example, we have a form with two fields: 'Text' and 'Text2'.
When the 'Text' field is empty, the title of the 'Text2' field will change to 'This is another title'.
This is how it appears when 'Run Once' is not enabled:
This is how it appears when 'Run Once' is enabled:
Rule with the flag was executed only once, but it also changed the default value of the field.