GetFormFieldValue

Form fields

Description

Retrieves the value of the specified form field.

Syntax

Delphi

Function TPDFlib.GetFormFieldValue(Index: Integer): WideString;

ActiveX

Function PDFlib::GetFormFieldValue(Index As Long) As String

DLL

const wchar_t* DLGetFormFieldValue(int InstanceID, int Index);
const char* DLGetFormFieldValueA(int InstanceID, int Index);

Parameters

IndexThe index of the form field to retrieve the value of

Return values

Returns the current value of the specified form field. Returns an empty string when the document has no form data or Index is out of range.