Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.CreateResetAction
Creates a reset action.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 13.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.CreateResetAction"; PDF ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Result
Returns number or error.
Description
Creates a reset action.A reset form action resets all or specific fields of an interactive form to their default values. If only a few specific fields should be reset then add these fields with DynaPDF.AddFieldToFormAction to the action. It is possible to exclude or include only specific fields when resetting the form. However, if no specific fields are added to the action, all fields are reset to their default values, this is the normal case.
Actions must be added to a PDF object with DynaPDF.AddActionToObj.
If the function succeeds the return value is the action handle, a value greater or equal zero. If the function fails the functions returns an error.
See also CreateResetAction function in DynaPDF manual.
Examples
Create reset button:
Set Variable [ $ResetButton; Value:MBS( "DynaPDF.CreateButton"; $pdf; "Reset"; "Reset"; -1; 100; 200; 100; 20 ) ]
Set Variable [ $ResetAction; Value:MBS( "DynaPDF.CreateResetAction"; $pdf ) ]
Set Variable [ $r; Value:MBS( "DynaPDF.AddActionToObj"; $pdf; "Field"; "OnMouseUp"; $ResetAction; $ResetButton ) ]
See also
- DynaPDF.AddActionToObj
- DynaPDF.AddFieldToFormAction
- DynaPDF.CreateGoToAction
- DynaPDF.CreateGoToActionEx
- DynaPDF.CreateGoToRAction
- DynaPDF.CreateGoToRActionEx
- DynaPDF.CreateJSAction
- DynaPDF.CreateRadioButton
- DynaPDF.CreateURIAction
- DynaPDF.New
Release notes
- Version 13.3
- Added DynaPDF.AddFieldToFormAction, DynaPDF.CreateResetAction and DynaPDF.CreateSubmitAction functions.
Example Databases
Blog Entries
Created 13th May 2023, last changed 27th August 2023