Business Rule Trigger — Advanced
- More complex conditions and actions can be scripted
- Select the Advanced tab to access the scripting fields
- Script a Condition to avoid loading unnecessary script
Use the scripting fields on the Advanced tab when the Business Rule's conditions and actions are more complex. Example: evaluating the previous value of a field.
- Condition - create a JavaScript statement to specify when the Business Rule should execute. The Condition field returns true when left blank
- Script - JavaScript that executes server-side when the When to run criteria is met and the Condition field returns true. Insert the appropiate script logic to be processed when the Business Rule executes.
IMPORTANT
Condition(s) on the When to run tab and condition(s) in the Condition field on the Advanced tab must both evaluate to true for logic in the Script field to execute.