THotPDF.GetLoadedFormFieldOption Method

Reads the export value of the specified option in the loaded PDF form field, whilst returning the corresponding display text via an output parameter

Declaration

function GetLoadedFormFieldOption(FieldIndex, OptionIndex: Integer; out ADisplayValue: AnsiString): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
FieldIndexThe zero-based index of the target form field
OptionIndexThe zero-based option index within the field's options list
ADisplayValueOutput parameter, receives the text displayed to the user for this option on the interface

Return value

Returns the export value of this option, which is the actual string passed to the server or FDF when the form is submitted

Usage notes

Related APIs