SetFormFieldChoiceType

Form fields

Description

Sets a choice form field to be a combo box or list box.

Syntax

Delphi

function TPDFlib.SetFormFieldChoiceType(Index, ChoiceType: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldChoiceType(Index As Long, ChoiceType As Long) As Long

DLL

int DLSetFormFieldChoiceType(int InstanceID, int Index, int ChoiceType);

Parameters

IndexThe index of the form field
ChoiceType1 = Set the form field to be a scrollable list box 2 = Set the form field to be a drop-down combo box 3 = Set the form field to be a multiselect scrollable list box 4 = Set the form field to be a drop-down combo box with edit box

Return values

0The field was not changed
1The field was changed successfully