THotPDF.SetLoadedFormFieldDefaultValue Method
Sets a local default value on a loaded form field without changing its current value or visible appearance
Declaration
procedure SetLoadedFormFieldDefaultValue(FieldIndex: Integer; const AValue: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based loaded terminal-field index |
AValue | Scalar default value, or a checkbox or radio button state name |
Return value
This member does not return a value
Usage notes
- Writes a local
/DVoverride while preserving the ancestor default and sibling fields - Checkbox and radio defaults are PDF names, including when the button type is inherited
- 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