> 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 Required Status

> Retrieves the required status of a form input.

## `formInput.getRequired()`

Retrieves the required status of a form input.

This method is applicable to the following form input types:

* `FormCheckboxInput`
* `FormFileUploadWrapper`
* `FormRadioInput`
* `FormSelect`
* `FormTextarea`
* `FormTextInput`

## Syntax

```typescript
formInput.getRequired(): Promise<boolean>
```

## Returns

**Promise\<`boolean`>**: *Boolean* - A promise that resolves to the required status of the form input.

## Example

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

const formInputTypes = [
  'FormCheckboxInput',
  'FormFileUploadWrapper',
  'FormRadioInput',
  'FormSelect',
  'FormTextarea',
  'FormTextInput'
];

if (selectedElement?.type && formInputTypes.includes(selectedElement.type)) {

  const required = await selectedElement.getRequired()
  console.log(required)

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

## Designer Ability

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

```
```