Skip to content

a11ydocs v1.7.0


a11ydocs / FieldActions

Interface: FieldActions

Defined in: src/types.ts:2552

JavaScript actions attached to a form field.

Key mapping (ISO 32000-2 Table 217):

  • keystroke → /K (Keystroke action)
  • format → /F (Format action)
  • validate → /V (Validate action)
  • calculate → /C (Calculate action)

Each string is raw PDF JavaScript source code. The library emits each non-null action as a PDF stream object referenced from the /AA dictionary on the field annotation.

Properties

PropertyTypeDescriptionDefined in
calculate?stringCalculate JS → /C in the /AA dict.src/types.ts:2560
format?stringFormat JS → /F in the /AA dict.src/types.ts:2556
keystroke?stringKeystroke JS → /K in the /AA dict.src/types.ts:2554
validate?stringValidate JS → /V in the /AA dict.src/types.ts:2558

Released under the ISC license.