GetFormFieldSubName

Form fields

Description

For radio button, checkbox and choice (scrollable list box or combo box drop-down list) form fields, this function returns the specified possible value.

For choice fields the GetformFieldSubDisplayName function can be used to retrieve the display name of the choice item.

Syntax

Delphi

Function TPDFlib.GetFormFieldSubName(Index, SubIndex: Integer): WideString;

ActiveX

Function PDFlib::GetFormFieldSubName(Index As Long, SubIndex As Long) As String

DLL

const wchar_t* DLGetFormFieldSubName(int InstanceID, int Index, int SubIndex);
const char* DLGetFormFieldSubNameA(int InstanceID, int Index, int SubIndex);

Parameters

IndexThe index of the form field to examine
SubIndexThe index of the sub-value to retrieve

Return values

Returns the specified possible value (partial name) of the field. Returns an empty string when the document has no form data or the field index is invalid.