> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# isFieldRequired()

> Function exported by @botmesh/core/spi.

```ts theme={null}
function isFieldRequired(field): boolean;
```

Defined in: [forms/validate.ts:36](https://github.com/andresayac/botmesh/blob/main/packages/core/src/forms/validate.ts#L36)

Whether an answer is mandatory (`required` defaults to `true`, except for `optin`).

## Parameters

| Parameter | Type |
| - | - |
| `field` | [`FormField`](https://botmesh.afaya.com.co/api/core/type-aliases/FormField) |

## Returns

`boolean`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.