> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get Form Settings

> Retrieves the settings of the form.

## `FormForm.getSettings()`

Retrieves the settings of the form.

> **Note**
>
> To get the settings of the form in a specific state, first use the `form.setSettings()` method to set form to the desired `state`. Then use `form.getSettings()` to retrieve the settings of the form.

## Syntax

```typescript
form.getSettings(): Promise<FormSettings>
```

## Returns

**Promise\<`FormSettings`>**: *Object* - A promise that resolves to the settings of the form.

**`FormSettings` Properties**

| Property | Type       | Description                                                     |
| -------- | ---------- | --------------------------------------------------------------- |
| state    | FormState  | The current state of the form ('normal', 'success', or 'error') |
| name     | string     | The name of the form                                            |
| redirect | string     | The URL to redirect to after form submission                    |
| action   | string     | The URL where the form data will be submitted                   |
| method   | FormMethod | The HTTP method used for form submission ('get' or 'post')      |

## Example

```typescript
const selectedElement = await webflow.getSelectedElement()

if (selectedElement?.type === 'FormForm' || selectedElement?.type === 'FormWrapper'){

  const formSettings = await selectedElement.getSettings()
  console.log(formSettings)

  /* Example Response
  {
    state: "success",
    name: "My Form",
    redirect: "https://my-site.com/thank-you",
    action: "https://{dc}.api.mailchimp.com/3.0/lists/{list_id}/members",
    method: "post"
  } */

} else {
  console.log("Selected Element is not a Form Element")
}
```

## Designer Ability

| Designer Ability    | Locale | Branch | Workflow | Sitemode |
| :------------------ | :----- | :----- | :------- | :------- |
| **canAccessCanvas** | Any    | Any    | Any      | Any      |

```
</rewritten_file>
```