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 | The index of the target form control in the document's field array (zero-based). |
AValue | The new string that needs to be assigned to this field as the export value. |
Usage notes
- 表单导出值通常用于 HTML 表单数据提交(Submit Form)等交互式逻辑中,在阅读器勾选特定项目后随同表单一同发送到服务器。
- 确保在调用时通过
GetLoadedFormFieldNames确定了正确的索引。