> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Set publish settings

> Publish, unpublish, open, or close a modern Google Form.

`setPublishSettings` controls whether respondents can see and submit a form.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { setPublishSettings } from "automate.ax/google-forms"

export default automation("Open form responses", () => {
  onHttpRequest({ scope: "automation" })

  setPublishSettings({
    form: "form-id",
    isPublished: true,
    isAcceptingResponses: true,
  })
})
```

## Inputs

`form`, `isPublished`, and `isAcceptingResponses` are required. A form cannot
accept responses while unpublished. `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.
