# PDFViewer.focusField()

```ts
focusField(name: string): boolean
```

Scroll a field into view (any page) and focus its editor. Values are read and set through [doc.forms](https://kernstra.com/docs/web-sdk/api/doc-forms), with or without a viewer. While this viewer is open they go through its fields: shown at once, on its undo stack, in its export, and [formFieldChanged](https://kernstra.com/docs/web-sdk/api/events#ev-formfieldchanged) fires once per applied field.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `name` | `string` | The field's fully qualified name. |

Returns `boolean`: `false` if unknown.

Throws:

- `INVALID_STATE` after `destroy()`.

```ts
viewer.focusField('applicant.email');
```

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

Web page: https://kernstra.com/docs/web-sdk/api/pdfviewer/focusfield
