Web SDKv1.0.0

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

ParameterTypeDescription
namestringThe field's fully qualified name.

Returns

boolean false if unknown.

Throws

  • INVALID_STATE after destroy().

Example

TypeScript
viewer.focusField('applicant.email');

More in PDFViewer