TPDFlibViewerFormFieldAction

Events, viewer interaction

Description

Fires through OnFormFieldAction when a push button, signature widget or another field carrying a mouse-up action is activated

ActivateFormField decodes the field's action dictionary for the trigger and passes the typed summary to the handler; the viewer never evaluates JavaScript, so hosts receive script actions as typed data and decide how to handle them

Declaration

TPDFlibViewerFormFieldAction = procedure(Sender: TObject; FieldIndex, FieldType: Integer; const TriggerEvent: WideString; const Info: TPDFlibActionInfo) of object;

Parameters

SenderThe viewer on which the field was activated
FieldIndexOne-based index of the field or widget that was activated
FieldTypeField type code from GetFormFieldType: 1 text, 2 push button, 3 check box, 4 radio button, 5 choice, 6 signature
TriggerEventPDF trigger name the action was looked up under, such as U
InfoDecoded action and target information

See also

OnFormFieldAction, ActivateFormField, TPDFlibActionInfo, InteractiveForms, TPDFlibViewerFormFieldChange, TPDFlibViewer