A trigger that runs CEL expression validation widget event actions according to the action rule ID.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
// Define Triggers for each Condition respectively const trigger_success = CardService.newTrigger() .setActionRuleId("CEL_TEXTINPUT_SUCCESS_RULE_ID"); const trigger_failure = CardService.newTrigger() .setActionRuleId("CEL_TEXTINPUT_FAILURE_RULE_ID"); const eventAction = CardService.newEventAction() .setActionRuleId("CEL_TEXTINPUT_EVALUATION_RULE_ID") .setExpressionDataAction(expressionDataAction) .addPostEventTrigger(trigger_success) .addPostEventTrigger(trigger_failure);
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Trigger | Sets the action rule id for the trigger. |
Detailed documentation
setActionRuleId(actionRuleId)
Sets the action rule id for the trigger.
Parameters
| Name | Type | Description |
|---|---|---|
action | String | The uuid that uniquely identifies an action. |
Return
Trigger — This object, for chaining.