Enum TriggerSource

TriggerSource

An enumeration denoting the source of the event that causes the trigger to fire.

To call an enum, you call its parent class, name, and property. For example, ScriptApp.TriggerSource.SPREADSHEETS.

Properties

PropertyTypeDescription
SPREADSHEETSEnumGoogle Sheets causes the trigger to fire.
CLOCKEnumA time-driven event causes the trigger to fire.
FORMSEnumGoogle Forms causes the trigger to fire.
DOCUMENTSEnumGoogle Docs causes the trigger to fire.
CALENDAREnumGoogle Calendar causes the trigger to fire.