THotPDF.GetLoadedFormFieldDefaultValue Method
Reads the default value of a loaded field, resolving indirect and inherited /DV entries
Declaration
function GetLoadedFormFieldDefaultValue(FieldIndex: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based index of the loaded terminal field |
Return value
Returns the existing AnsiString representation of a scalar default; a missing field, a missing default or a non-scalar default yields an empty string
Usage notes
- A local default takes precedence over the ancestor default, including an explicitly empty string
- The scalar return type does not serialise a multi-selection default array
- ResetLoadedFormField reads the default object itself so that it can preserve supported name and array defaults