Recall & Review
beginner
What is the purpose of the
onEdit trigger in Google Sheets?The
onEdit trigger runs a script automatically whenever a user changes a cell in the spreadsheet. It helps automate tasks based on edits.Click to reveal answer
beginner
When does the
onOpen trigger run in Google Sheets?The
onOpen trigger runs a script automatically every time the spreadsheet is opened by a user. It is useful for setup tasks like creating menus.Click to reveal answer
intermediate
Can
onEdit triggers run if a script changes a cell value?No,
onEdit triggers only run when a user manually edits a cell, not when a script changes a cell value.Click to reveal answer
beginner
How do you create a simple
onEdit trigger function in Google Sheets?You write a function named
onEdit(e) in the script editor. Google Sheets automatically runs it when a cell is edited.Click to reveal answer
beginner
What kind of tasks are good candidates for
onOpen triggers?Tasks like adding custom menus, showing welcome messages, or setting up initial spreadsheet states are good for
onOpen triggers.Click to reveal answer
Which trigger runs when you open a Google Sheet?
✗ Incorrect
onOpen runs when the spreadsheet is opened.What event causes the
onEdit trigger to run?✗ Incorrect
onEdit runs only when a user manually edits a cell.Can
onEdit triggers detect changes made by scripts?✗ Incorrect
onEdit triggers do not run for script-made changes.What is the correct function name for an
onOpen trigger?✗ Incorrect
The function should be named
onOpen(e) to receive the event object.Which trigger is best to add a custom menu when the sheet opens?
✗ Incorrect
onOpen is used to add menus when the sheet opens.Explain how the
onEdit trigger works in Google Sheets and give an example of when you might use it.Think about what happens when you change a cell manually.
You got /3 concepts.
Describe the purpose of the
onOpen trigger and how it can improve user experience in a spreadsheet.Consider what you want users to see or have ready when they open the sheet.
You got /3 concepts.