Skip to main content
googleForms.setPublishing controls whether respondents can see and submit a form.

Example

Inputs

Provide form, isPublished, and isAcceptingResponses. A form can’t accept responses while unpublished. Second argument { account } selects the Google Account.

Output

Returns { formId: string; publishSettings: { isPublished: boolean; isAcceptingResponses: boolean } }. Google only supports this publishing API for modern forms that use explicit publication controls.