Stay organized with collections
Save and categorize content based on your preferences.
EventType
An enumeration denoting the type of triggered event.
To call an enum, you call its parent class, name, and property. For example,
ScriptApp.EventType.CLOCK.
Properties
Property
Type
Description
CLOCK
Enum
The trigger fires once the time-driven event reaches a specific time.
ON_OPEN
Enum
The trigger fires once the user opens the Google Docs, Sheets, or Forms file.
ON_EDIT
Enum
The trigger fires once the user edits the Google Sheets file (for example, by entering a new
value into a cell, which counts as an edit instead of a change).
ON_FORM_SUBMIT
Enum
The trigger fires once the user responds to a Google Form. This trigger is available either in
the Google Form itself or in the Google Sheets file that the form sends its responses to.
ON_CHANGE
Enum
The trigger fires once the user changes the Google Sheets file (for example, by adding a row,
which counts as a change instead of an edit).
ON_EVENT_UPDATED
Enum
The trigger fires once an event gets created, updated, or deleted on the specified Google
Calendar.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`EventType` is an enumeration used to define the type of event that triggers a script to run."],["The `EventType` enum includes properties such as `CLOCK`, `ON_OPEN`, `ON_EDIT`, `ON_FORM_SUBMIT`, `ON_CHANGE`, and `ON_EVENT_UPDATED`, each corresponding to a specific event trigger."],["To call an enum property, use the syntax `ScriptApp.EventType.PROPERTY_NAME`, replacing `PROPERTY_NAME` with the desired event type (e.g., `ScriptApp.EventType.CLOCK`)."],["These event triggers allow scripts to automatically execute in response to various actions within Google Apps like Docs, Sheets, Forms, and Calendar."]]],[]]