GetFormFieldDefaultValue

Form fields

Description

Returns the default value of a form field. This is the value that the field will have when the form is reset.

Syntax

Delphi

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

ActiveX

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

DLL

const wchar_t* DLGetFormFieldDefaultValue(int InstanceID, int Index);
const char* DLGetFormFieldDefaultValueA(int InstanceID, int Index);

Parameters

IndexThe index of the form field

Return values

Returns the default value of the field, or an empty string when Index is invalid or the field carries no default value