DynaPDF.GetJavaScriptAction
---------------------------

Returns the script of a JavaScript Action as string.

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

MBS( "DynaPDF.GetJavaScriptAction"; PDF; Index ) 

**MBS**( **"DynaPDF.GetJavaScriptAction";** /\* Returns the script of a JavaScript Action as string. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Index**) /\* The index for the action to query.  
Range from 0 to [DynaPDF.GetActionCount](DynaPDFGetActionCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Index | The index for the action to query.   Range from 0 to [DynaPDF.GetActionCount](DynaPDFGetActionCount.md)-1. | 0 |

### Result

Returns text or error.

### Description

Returns the script of a JavaScript Action as string.   
The parameter Index must be a valid handle of a JavaScript Action.  
See also [GetJavaScriptAction](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetJavaScriptAction.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ChangeJavaScriptAction](DynaPDFChangeJavaScriptAction.md)
- [DynaPDF.CheckFieldNames](DynaPDFCheckFieldNames.md)
- [DynaPDF.GetActionCount](DynaPDFGetActionCount.md)
- [DynaPDF.GetJavaScript](DynaPDFGetJavaScript.md)
- [DynaPDF.GetJavaScriptCount](DynaPDFGetJavaScriptCount.md)
- [DynaPDF.GetJavaScriptName](DynaPDFGetJavaScriptName.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldName](DynaPDFSetFieldName.md)

### Release notes

- **Version 13.2**
    - Added [DynaPDF.AddJavaScript](https://www.mbsplugins.eu/DynaPDFAddJavaScript.shtml), [DynaPDF.ChangeJavaScript](https://www.mbsplugins.eu/DynaPDFChangeJavaScript.shtml), [DynaPDF.ChangeJavaScriptAction](https://www.mbsplugins.eu/DynaPDFChangeJavaScriptAction.shtml), [DynaPDF.ChangeJavaScriptName](https://www.mbsplugins.eu/DynaPDFChangeJavaScriptName.shtml), [DynaPDF.GetActionCount](https://www.mbsplugins.eu/DynaPDFGetActionCount.shtml), [DynaPDF.GetJavaScript](https://www.mbsplugins.eu/DynaPDFGetJavaScript.shtml), [DynaPDF.GetJavaScriptAction](https://www.mbsplugins.eu/DynaPDFGetJavaScriptAction.shtml), [DynaPDF.GetJavaScriptName](https://www.mbsplugins.eu/DynaPDFGetJavaScriptName.shtml).

### Blog Entries

- [New in MBS FileMaker Plugin 13.2](https://www.mbsplugins.de/archive/2023-05-17/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.2pr3](https://www.mbsplugins.de/archive/2023-04-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 15th April 2023 , last changed 15th April 2023

  
[DynaPDF.GetJavaScript](DynaPDFGetJavaScript.md) - [DynaPDF.GetJavaScriptCount](DynaPDFGetJavaScriptCount.md)

[HTML Version](DynaPDFGetJavaScriptAction.shtml)