SetFormFieldSubmitActionFields
Form fields
Description
Assigns a SubmitForm action to a form field and writes an optional field-name list
Syntax
Delphi
Function TPDFlib.SetFormFieldSubmitActionFields(Index: Integer; Const ActionType, Link, FieldNames: WideString; Flags: Integer): Integer;
Parameters
| Index | Form field index |
|---|---|
| ActionType | Trigger key such as U, D, E, X, Fo, Bl, K, F, V, C, or empty for primary action |
| Link | Submit target URL |
| FieldNames | Comma, semicolon, or line separated list of field names for the PDF /Fields array |
| Flags | SubmitForm action flags |
Return values
Returns 1 on success, or 0 if the field, trigger, URL, or PDF/A mode is invalid
Remarks
Use this wrapper when the Delphi class API is preferred over assembling the lower-level PDF objects manually
See also
SetFormFieldSubmitAction, SetFormFieldSubmitActionEx, AddLinkToSubmitForm