Class Trigger

Trigger

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
Trigger Sets the action rule id for the trigger.

Detailed documentation

set Action Rule Id(actionRuleId)

Sets the action rule id for the trigger.

Parameters

Name Type Description
action Rule Id
String The uuid that uniquely identifies an action.

Return

Trigger — This object, for chaining.

Design a Mobile Site
View Site in Mobile | Classic
Share by: