DynaPDF.CreateResetAction
-------------------------

Creates a reset action.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [13.3](newinversion133.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.CreateResetAction"; PDF ) 

**MBS**( **"DynaPDF.CreateResetAction";** /\* Creates a reset action. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### 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](DynaPDFAddFieldToFormAction.md) 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](DynaPDFAddActionToObj.md).  
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](https://www.monkeybreadsoftware.com/DynaPDF-Manual/CreateResetAction.shtml) function in DynaPDF manual.

### Examples

Create reset button:

 Set Variable \[ $ResetButton ; Value:MBS ( "[DynaPDF.CreateButton](DynaPDFCreateButton.md)"; $pdf ; "Reset"; "Reset"; -1; 100; 200; 100; 20 ) \]  
Set Variable \[ $ResetAction ; Value:MBS ( "DynaPDF.CreateResetAction"; $pdf ) \]  
Set Variable \[ $r ; Value:MBS ( "[DynaPDF.AddActionToObj](DynaPDFAddActionToObj.md)"; $pdf ; "Field"; "OnMouseUp"; $ResetAction ; $ResetButton ) \]  
### See also

- [DynaPDF.AddActionToObj](DynaPDFAddActionToObj.md)
- [DynaPDF.AddFieldToFormAction](DynaPDFAddFieldToFormAction.md)
- [DynaPDF.CreateGoToAction](DynaPDFCreateGoToAction.md)
- [DynaPDF.CreateGoToActionEx](DynaPDFCreateGoToActionEx.md)
- [DynaPDF.CreateGoToRAction](DynaPDFCreateGoToRAction.md)
- [DynaPDF.CreateGoToRActionEx](DynaPDFCreateGoToRActionEx.md)
- [DynaPDF.CreateJSAction](DynaPDFCreateJSAction.md)
- [DynaPDF.CreateRadioButton](DynaPDFCreateRadioButton.md)
- [DynaPDF.CreateURIAction](DynaPDFCreateURIAction.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 13.3**
    - Added [DynaPDF.AddFieldToFormAction](https://www.mbsplugins.eu/DynaPDFAddFieldToFormAction.shtml), [DynaPDF.CreateResetAction](https://www.mbsplugins.eu/DynaPDFCreateResetAction.shtml) and [DynaPDF.CreateSubmitAction](https://www.mbsplugins.eu/DynaPDFCreateSubmitAction.shtml) functions.

### Example Databases

- [DynaPDF/Form/Form](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Form/Form.shtml#6ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 13.3](https://www.mbsplugins.de/archive/2023-07-25/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.3pr1](https://www.mbsplugins.de/archive/2023-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

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

  
[DynaPDF.CreateRadioButton](DynaPDFCreateRadioButton.md) - [DynaPDF.CreateSeparationCS](DynaPDFCreateSeparationCS.md)

[HTML Version](DynaPDFCreateResetAction.shtml)