Dependency Actions
Overview
The following sections outline the available SugarLogic dependency actions.
Dependency Parameters
Dependency definitions will generally contain most, if not all, of the parameters displayed in the table below. The following sections will outline each dependency action as well as dependency specific parameters.
Parameter | Type | Description |
hooks | Array |
The views to execute the trigger on. Possible values are: "edit", "view", "save" and "all". If you include 'save' or |
trigger | String | A SugarLogic formula that determines if the dependency should run. Example: 'equal($status, "Closed")' .
Important: This must be a string, even if it's always |
triggerFields | Array | Lists fields that should trigger re-evaluation of the logic when they change (in UI).
This should include all fields referenced in trigger and any SugarLogic used in actions. |
onload | Boolean | Whether or not to trigger the dependencies when the page is loaded. |
actions | Array |
One or more actions to execute when trigger evaluates to true. Examples: |
notActions | Array |
One or more actions to execute when trigger evaluates to false. Examples: |