티스토리 수익 글 보기
Class FormTriggerBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
FormTriggerBuilder is used to build form triggers.
-
The
create()method creates and returns a new trigger. -
The
onFormSubmit()method specifies a trigger that fires when a form response is submitted. -
The
onOpen()method specifies a trigger that fires when the form's edit view is opened.
A builder for form triggers.
Methods
| Method | Return type | Brief description |
|---|---|---|
create() | Trigger | Creates and returns the new trigger. |
on | Form | Specifies a trigger that fires when a response is submitted to the form. |
on | Form | Specifies a trigger that fires when the form’s edit view is opened. |
Detailed documentation
create()
onFormSubmit()
Specifies a trigger that fires when a response is submitted to the form.
const form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz'); ScriptApp.newTrigger('myFunction').forForm(form).onFormSubmit().create();
Return
FormTriggerBuilder — This FormTriggerBuilder, for chaining.
onOpen()
Specifies a trigger that fires when the form’s edit view is opened.
const form = FormApp.getActiveForm(); ScriptApp.newTrigger('myFunction').forForm(form).onOpen().create();
Return
FormTriggerBuilder — This FormTriggerBuilder, for chaining.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-13 UTC.