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;
ActiveX
Function PDFlib::RemoveFormFieldAction(Index As Long, TriggerEvent As String) As Long
DLL
int DLRemoveFormFieldAction(int InstanceID, int Index, const wchar_t* TriggerEvent);
int DLRemoveFormFieldActionA(int InstanceID, int Index, const char* TriggerEvent);
Parameters
| Index | The 1-based form-field index |
|---|---|
| TriggerEvent | The trigger name to clear: empty for the primary /A action, or E, X, D, U, Fo, Bl, K, F, V, or C |
Return values
| 0 | No matching field action was removed |
|---|---|
| 1 | The 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