Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.AddFieldToFormAction
Adds a field to a form action.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 13.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.AddFieldToFormAction"; PDF; ActionHandle; FieldHandle; Include ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
ActionHandle | Handle of a submit or reset form action. | |
FieldHandle | Handle of a field that should be added to array. | |
Include | Include or exclude this field from submitting? Pass 0 to exclude or 1 to include. |
0 |
Result
Returns OK or error.
Description
Adds a field to a form action.Instead of simply submitting all field values of an interactive form to a web server, it is also possible to submit the values of specific fields only. A submit form and reset form action can hold an optional array of fields which can be included or excluded from the action. For example, if a form contains 20 fields which all should be submitted to the web server apart from two of those fields, then add the two fields to the submit form action and set the parameter Include to false.
Note, that parameter Include is handled reversed if the submit flag sfExclude is set (see also DynaPDF.CreateSubmitAction, DynaPDF.CreateResetAction). The fields are then excluded if Include is true and vice versa.
See also AddFieldToFormAction function in DynaPDF manual.
See also
Release notes
- Version 13.3
- Added DynaPDF.AddFieldToFormAction, DynaPDF.CreateResetAction and DynaPDF.CreateSubmitAction functions.
Blog Entries
This function checks for a license.
Created 13th May 2023, last changed 14th May 2023
