SetFormFieldVisibilityAction
Form fields, Destinations and actions
Description
Assigns a show, hide, or toggle visibility action to an AcroForm field event by using readable event and field-name lists
Syntax
Delphi
Function TPDFlib.SetFormFieldVisibilityAction(Index: Integer; Const EventName, FieldNames: WideString; Visibility: Integer): Integer;
Parameters
| Index | The form field ID that receives the action |
|---|---|
| EventName | A readable event name such as MouseUp, Enter, Exit, Focus, LostFocus, KeyPress, Format, Change, Calculate, or their short PDF trigger names |
| FieldNames | A semicolon, comma, or line separated list of target field names |
| Visibility | 0 hides fields, 1 shows fields, 2 toggles fields through JavaScript |
Return values
| 0 | The action could not be assigned |
|---|---|
| 1 | The action was assigned |