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