SetFormFieldDefaultValue

Form fields

Description

Sets the default value of the field. This is the value which is shown when the reset button is pressed, if one is on the form.

Syntax

Delphi

function TPDFlib.SetFormFieldDefaultValue(Index: Integer; Const NewDefaultValue: WideString): Integer;

ActiveX

Function PDFlib::SetFormFieldDefaultValue(Index As Long, NewDefaultValue As String) As Long

DLL

int DLSetFormFieldDefaultValue(int InstanceID, int Index, wchar_t * NewDefaultValue);

Parameters

IndexThe index of the form field to change
NewDefaultValueThe new default value for the form field. For multi-line text fields you can use Chr(13) or Chr(13) + Chr(10) to force a line feed between lines.

Return values

0The form field could not be found
1The default value of the specified form field was set successfully