SetFormFieldVisibilityAction

폼 필드, 대상 및 액션

설명

읽기 쉬운 이벤트와 필드 이름 목록을 사용해 AcroForm 필드 이벤트에 표시, 숨기기 또는 전환 가시성 액션을 할당합니다

구문

Delphi

Function TPDFlib.SetFormFieldVisibilityAction(Index: Integer; Const EventName, FieldNames: WideString; Visibility: Integer): Integer;

매개변수

Index액션을 받는 폼 필드 ID입니다
EventNameMouseUp, Enter, Exit, Focus, LostFocus, KeyPress, Format, Change, Calculate 같은 읽기 쉬운 이벤트 이름 또는 짧은 PDF 트리거 이름입니다
FieldNames세미콜론, 쉼표 또는 줄바꿈으로 구분된 대상 필드 이름 목록입니다
Visibility0은 필드를 숨기고, 1은 표시하고, 2는 JavaScript로 필드를 전환합니다

반환 값

0액션을 할당하지 못했거나 PDF/X-6 모드가 활성입니다
1액션이 할당되었습니다