THotPDF.SetLoadedFormFieldDefaultValue Method
Sets the default value of the loaded PDF form field, which determines the initial content the field should restore to after a reset operation is performed
Declaration
procedure SetLoadedFormFieldDefaultValue(FieldIndex: Integer; const AValue: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based loaded terminal-field index |
AValue | The new default value string that will replace the field's original default value |
Usage notes
This member returns no value
Usage notes
- Writes a local
/DVentry; without it, reset behaviour may not be what you expect - The document must be saved for the change to take effect; pair it with ResetLoadedFormField when testing
- Call ResetLoadedFormField to apply the default to the current value
- This scalar setter does not create multi-selection default arrays
- An invalid field index leaves the document unchanged