THotPDF.SetLoadedFormFieldValueByName Method
Sets the current value of an AcroForm form field in the loaded PDF document by field name, suitable when the field name is known
Declaration
procedure SetLoadedFormFieldValueByName(const AFieldName, AValue: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AFieldName | The complete field name of the target form field (T or hierarchical full name), case-sensitive |
AValue | The new value string to write to the V entry of this field |
Usage notes
This member returns no value
Usage notes
- Use this API in the AcroForm workflow before the affected page, resource, field or catalogue object is finalised
- Compared to operating by index, operating by name is more readable and is recommended in scripted form-filling scenarios
- Changes must be saved before they can become persistent