ToggleCheckBoxField

Form fields, viewer interaction

Description

Selects the exact checkbox or radio widget appearance state, or clears an active state when the button flags permit that operation

OnFormFieldValueChanged fires

Syntax

Delphi

Function TPDFlibViewer.ToggleCheckBoxField(FieldIndex: Integer): Integer;

Parameters

FieldIndex1-based field or widget temporary index of a checkbox or radio field

Return values

0No document is open, the field is not a checkbox or radio button, it is read-only, or the write failed
1The state was written, or already satisfied as with the radio flag that prevents clearing

See also

SetFormFieldValueAndRefresh, OnFormFieldValueChanged, OnFormFieldAction, TPDFlibViewer