Returns the form the user currently has open.
class FormApp method .getActiveForm()
FormApp is the Apps Script service.
.getActiveForm() is the method name you will see after a dot in your code.
What it does
Why it's used
- Edit the form tied to the open spreadsheet project.
- Quick changes while building a form-linked workflow.
Common errors
- Forgetting parentheses on getActiveForm. Write FormApp.getActiveForm(), not FormApp.getActiveForm or getActiveForm by itself.
- Skipping dots between chained calls. Each step needs a dot, like FormApp.getActiveForm().
- Adding spaces where they do not belong. Write FormApp.getActiveForm(), not FormApp .getActiveForm(), FormApp.getActiveForm (), or FormApp . getActiveForm().
- Wrong capitalization. Use FormApp and getActiveForm, not formapp or getactiveform.
Explore
Related methods
-
.openById()
Opens an existing form by its file ID.
-
.getEditUrl()
Returns the link to edit the form.
-
.getResponses()
Returns all submitted responses to the form.
-
.getPublishedUrl()
Returns the public link respondents use to fill out the form.
-
.create()
Creates a new blank Google Form.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about FormApp.getActiveForm().