This page describes how to perform these tasks involving forms:
- Publish the form so that responders can access it
- Share your form with responders
Before you begin
Do the following tasks before proceeding with the tasks on this page:
Get the form ID. The form ID is returned in the
formId
field of the response when you create a form usingforms.create
.
Publish the form so that responders can access it
You can publish an existing form with the
forms.setPublishSettings
method.
Call the
forms.setPublishSettings
method with the form ID.
REST
Sample request body
{
"publishSettings": {
"isPublished": true,
"isAcceptingResponses": true
}
}
Share your form with responders
To add responders to a form so that they can open and respond to it, you can use
the Drive
permissions.create
method.
Call the
permissions.create
method with the form ID and the access settings.
REST
Sample request body
{
"view": "published",
"role": "reader",
"type": "user",
"emailAddress": "[email protected]"
}