PDFViewer.focusField()
Scroll a field into view (any page) and focus its editor. Values are read and set through 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 fires once per applied field.
methodFormssince 1.0.0
Signature
focusField(name: string): boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | string | The field's fully qualified name. |
Returns
boolean false if unknown.
Throws
INVALID_STATEafterdestroy().
Example
TypeScript
viewer.focusField('applicant.email');