Triggers let your Apps Script run automatically — without you having to click anything. They can fire on a schedule (every hour, daily, weekly), when a spreadsheet is opened or edited, or when a form is submitted.
There are two types of triggers:
- Simple triggers — built-in, no setup required:
onOpen(),onEdit(),onFormSubmit() - Installable triggers — set up programmatically or via the Apps Script UI, with more power and flexibility
In this series, we follow the Acme Corp sales team. Their Sales Tracker sheet uses triggers to validate data entry, send automated daily reports, sync form submissions, and notify managers on key events.
All examples use a Sales Tracker Google Sheet with the following columns:
| Customer Name | Product | Amount | Region | Sales Rep | Status | Date | |
|---|---|---|---|---|---|---|---|
| Sarah Johnson | [email protected] | Pro Plan | 299 | North | Alex Martinez | Closed | 2024-03-15 |
| Mark Chen | [email protected] | Enterprise Plan | 999 | East | Jordan Lee | In Progress | 2024-03-18 |
| Lisa Park | [email protected] | Starter Plan | 99 | South | Sam Rivera | Closed | 2024-03-20 |