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

IndexThe form field ID that receives the action
EventNameA readable event name such as MouseUp, Enter, Exit, Focus, LostFocus, KeyPress, Format, Change, Calculate, or their short PDF trigger names
FieldNamesA semicolon, comma, or line separated list of target field names
Visibility0 hides fields, 1 shows fields, 2 toggles fields through JavaScript

Return values

0The action could not be assigned
1The action was assigned