THotPDF.SetLoadedFormFieldExportValue Method
Sets the current scalar value of a loaded form field and synchronizes its selection state and change tracking
Declaration
procedure SetLoadedFormFieldExportValue(FieldIndex: Integer; const AValue: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based loaded terminal-field index |
AValue | Current field value, choice export value, or checkbox or radio state name |
Return value
This member does not return a value
Usage notes
- Updates
/VthroughSetFormFieldValue, including inherited field types and options - Writes checkbox and radio values as PDF names, synchronizes widget appearance states, and rebuilds choice selection indices
- Preserves the normal setter's encoded-string convention and registers the changed field for dependent calculations
- Call EnsureLoadedFieldAppearanceStream to regenerate visible text or choice appearances before saving
- Does not rename button appearance states or change the field's option list or default value
- A negative index raises an exception; an index beyond the last field leaves the document unchanged