Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

DynaPDF.CreateSubmitAction

Creates a submit action.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.CreateSubmitAction"; PDF; Flags; URL )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Flags Additional flags
URL URL of the web server

Result

Returns action number or error.

Description

Creates a submit action.
A submit form action submits the field values of an interactive form to a web server. It is also possible to submit the entire PDF file; however, this feature requires the full version of Adobe's Acrobat (version 5 or higher).
Instead of simply submitting all field values to a web server it also possible to submit the values of specific fields only. The fields must be added to the action with the function DynaPDF.AddFieldToFormAction. The fields of the action can be included or excluded depending whether the flag Exclude was set or not.

See also CreateSubmitAction function in DynaPDF manual.

Examples

Create submit button:

Set Variable [ $SubmitButton; Value:MBS( "DynaPDF.CreateButton"; $pdf; "Submit"; "Submit"; -1; 300; 200; 100; 20 ) ]
Set Variable [ $SubmitAction; Value:MBS( "DynaPDF.CreateSubmitAction"; $pdf; "InclNoValFields¶PDF"; "https://yourdomain.com/php.php" ) ]
Set Variable [ $r; Value:MBS( "DynaPDF.AddActionToObj"; $pdf; "Field"; "OnMouseUp"; $SubmitAction; $SubmitButton ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 13th May 2023, last changed 27th August 2023


DynaPDF.CreateStructureTreeEx - DynaPDF.CreateTextField

💬 Ask a question or report a problem