# FormsApi.type()

```ts
type(): Promise<FormType>
```

The kind of form the document carries, as a `FormType`. Only AcroForm fields are interactive. Needs no feature.

- Kind: method
- Since: 1.0.0

Returns `Promise<FormType>`: `'none'`, `'acroform'`, `'xfa'` or `'xfa-foreground'`.

Throws:

- `DOCUMENT_CLOSED` — the document has been closed.

```ts
if ((await doc.forms.type()) === 'xfa') showNotice('Dynamic XFA forms are not interactive');
```

Part of [FormsApi](https://kernstra.com/docs/web-sdk/api/doc-forms) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-forms/type
