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 LongDLL
int DLSetFormFieldDefaultValue(int InstanceID, int Index, wchar_t * NewDefaultValue);Parameters
| Index | The index of the form field to change |
|---|---|
| NewDefaultValue | The 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
| 0 | The form field could not be found |
|---|---|
| 1 | The default value of the specified form field was set successfully |