# PDFDocument.forms

```ts
get forms(): FormsApi
```

Read and set form field values, with or without a viewer. `fields()` and `getValues()` throw `FEATURE_NOT_LICENSED` without `extract`; `setValues()` needs `forms`. See [`FormsApi`](https://kernstra.com/docs/web-sdk/api/doc-forms).

- Kind: getter
- Since: 1.0.0

Returns `FormsApi`

```ts
await doc.forms.setValues({ 'topmostSubform[0].Page1[0].f1_01[0]': 'Ada Lovelace' });
```

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

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