Class Trigger Stay organized with collections Save and categorize content based on your preferences.
Trigger
A trigger that runsCELexpression 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 respectivelyconsttrigger_success=CardService.newTrigger().setActionRuleId("CEL_TEXTINPUT_SUCCESS_RULE_ID");consttrigger_failure=CardService.newTrigger().setActionRuleId("CEL_TEXTINPUT_FAILURE_RULE_ID");consteventAction=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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.