Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf


Returns number or error.


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.


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

Release notes

Example Databases

Blog Entries

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

DynaPDF.CreateRadioButton - DynaPDF.CreateSeparationCS