THotPDF.SetLoadedFormFieldExportValue Method
Modifies the export value associated with a specific form field in the loaded PDF document, primarily used for setting values when check boxes or multiple-choice options submit data.
Declaration
procedure SetLoadedFormFieldExportValue(FieldIndex: Integer; const AValue: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based loaded terminal-field index |
AValue | The new string that needs to be assigned to this field as the export value. |
Usage notes
This member returns no value
Usage notes
- Make sure the index from
GetLoadedFormFieldNamesis the right one before calling; the setter updates/Vand covers inherited field types and options - Writes checkbox and radio values as PDF names, synchronises 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