RemoveFormFieldAction

Form fields, Annotations and hotspot links

Description

Removes the action assigned to a form-field trigger

Syntax

Delphi

Function TPDFlib.RemoveFormFieldAction(Index: Integer; Const TriggerEvent: WideString): Integer;

DLL

int DLRemoveFormFieldAction(int InstanceID, int Index, const wchar_t * TriggerEvent);

Parameters

IndexThe 1-based form-field index
TriggerEventThe trigger name to clear: empty for the primary /A action, or E, X, D, U, Fo, Bl, K, F, V, or C

Return values

0No matching field action was removed
1The requested field action was removed

Remarks

When TriggerEvent is U, the function clears both the primary /A action and any additional /AA /U action so older and newer mouse-up action forms are removed together

When the final additional action is removed, the empty /AA dictionary is removed from the field dictionary