TPDFFieldType

Data types, form fields

Description

TPDFFieldType enumerates the interactive form field kinds the library creates

The form creation methods such as NewFormField and NewChildFormField take the field type as an integer ordinal of this enum, and GetFormFieldType reports it back for an existing field

Syntax

Delphi

TPDFFieldType = (ftUnknown, ftText, ftPushButton, ftCheckbox, ftRadioButton,
  ftChoice, ftSignature, ftParent);

Values

ftUnknownOrdinal 0, reserved for an unset or unrecognised type
ftTextA text field that also covers multi-line and comb variants
ftPushButtonA push button that triggers an action
ftCheckboxAn independent on-off checkbox
ftRadioButtonA radio button; kids sharing one parent behave as one mutually exclusive group
ftChoiceA list box or combo box choice field
ftSignatureA digital signature field
ftParentA pure parent node that groups kid fields without holding a value

Remarks

The creation path accepts ordinals 1 to 7; radio button and parent fields receive special kid wiring, all other types create a value-holding field directly

See also

NewFormField, NewChildFormField, GetFormFieldType, AddFormFieldSub