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

IndexForm field index
ActionTypeTrigger key such as U, D, E, X, Fo, Bl, K, F, V, C, or empty for primary action
LinkSubmit target URL
FieldNamesComma, semicolon, or line separated list of field names for the PDF /Fields array
FlagsSubmitForm 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