Returns the public link respondents use to fill out the form.
class FormApp method .getPublishedUrl()
FormApp is the Apps Script service.
.getPublishedUrl() is the method name you will see after a dot in your code.
What it does
Why it's used
- Drop the public fill-out link into an email or site.
- Share the respondent URL without opening Form settings.
Common errors
- Forgetting parentheses on getPublishedUrl. Write FormApp.getPublishedUrl(), not FormApp.getPublishedUrl or getPublishedUrl by itself.
- Skipping dots between chained calls. Each step needs a dot, like FormApp.getPublishedUrl().
- Adding spaces where they do not belong. Write FormApp.getPublishedUrl(), not FormApp .getPublishedUrl(), FormApp.getPublishedUrl (), or FormApp . getPublishedUrl().
- Wrong capitalization. Use FormApp and getPublishedUrl, not formapp or getpublishedurl.
1 Snippets using this method
Explore
Related methods
-
.getEditUrl()
Returns the link to edit the form.
-
.getResponses()
Returns all submitted responses to the form.
-
.setDestination()
Sends new form responses to a spreadsheet.
-
.getActiveForm()
Returns the form the user currently has open.
-
.openById()
Opens an existing form by its file ID.
More Apps Script
2 Better Sheets tutorials
Automate Emails
Related blog posts
Written guides about FormApp.getPublishedUrl().