While the basic setup of triggers can be very useful, they do not take advantage of the full capabilities of the trigger system.
Advanced setups can include triggers within triggers to blend And/Or logic (referred to as “Nested Triggers”), entire pages can be evaluated for any number of conditions, cascading and branching triggers can make complex decisions, all automatically.
Combining triggers and calculated fields opens a world of possibilities, where multiple fields can be run through formulas and functions, with the results being used in multi-stage trigger structures.
While a single trigger can have multiple conditions, with all conditions using the same conjunction (And/Or), some situations require a combination of the two. By creating separate triggers for each group of conditions using the same conjunction, then joining the triggers together in a higher level trigger, a precise set of conditions can be identified.
For example, there are four checkboxes, valued at 1, 2, 4, and 8. A trigger is needed to determine if the combined value of the checked boxes is more than 10. There are multiple solutions for this problem, one of which is detailed below.
The logical formula appears as follows:
(Box 8 and (Box 4 or (Box 2 and Box 1)))
Since each trigger needs to be referenced in the trigger above it, we begin with the lowest level, represented in Blue above.
The second level, represented in Green above, can now refer to the third-level trigger.
The top level, represented in Red above, can now be created to complete the structure.
When the top trigger is used anywhere in the system, the system evaluates the conditions and triggers from the top-down until it has a conclusion.