SetFormFieldHideActionFields
Form fields
Description
Assigns a Hide action to a form field trigger and targets one or more field names
Syntax
Delphi
Function TPDFlib.SetFormFieldHideActionFields(Index: Integer; Const ActionType, FieldNames: WideString; HideFlag: Integer): Integer;
Parameters
| Index | Form field index |
|---|---|
| ActionType | Trigger key such as U, D, E, X, Fo, Bl, K, F, V, C, or empty for primary action |
| FieldNames | Comma, semicolon, or line separated field names for the PDF /T target |
| HideFlag | Use 1 to hide the target annotations, or 0 to show them |
Return values
Returns 1 on success, or 0 if the field, trigger, target list, or PDF/A mode is invalid
Remarks
Use this helper for form-field show and hide interactions without manually creating a Hide action dictionary
See also
GetFormFieldActionInfo, SetFormFieldAction, AddLinkToHideField