DynaPDF.AddButtonImageEx2
-------------------------

Add/Set a form field button image.

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

MBS( "DynaPDF.AddButtonImageEx2"; PDF; Field; Button State; Caption; Image ) 

**MBS**( **"DynaPDF.AddButtonImageEx2";** /\* Add/Set a form field button image. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$Button State**; /\* The state of the button.  
Can be "Up", "Down" or "RollOver".e.g. "Up" \*/   
**$Caption**; /\* The caption text.e.g. "Hello" \*/   
**$Image**) /\* The image to pass.   
Can be a container field or variable containing a picture.e.g. MyTable::ImageContainer \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| Button State | The state of the button.   Can be "Up", "Down" or "RollOver". | "Up" |
| Caption | The caption text. | "Hello" |
| Image | The image to pass.    Can be a container field or variable containing a picture. | MyTable::ImageContainer |

### Result

Returns OK or error.

### Description

Add/Set a form field button image.  
This version allows you to pass a picture as container value instead of file path.  
See also [AddButtonImageEx2](https://www.monkeybreadsoftware.com/DynaPDF-Manual/AddButtonImageEx2.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.AddButtonImage](DynaPDFAddButtonImage.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 11.5**
    - Added [DynaPDF.AddButtonImageEx2](https://www.mbsplugins.eu/DynaPDFAddButtonImageEx2.shtml) function.

### Blog Entries

- [New in version 11.5 of MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-11-30/New_in_version_115_of_MBS_File/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.5 - Über 6600 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2021-11-16/Neues_MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.5](https://www.mbsplugins.de/archive/2021-11-16/MBS_FileMaker_Plugin_115/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.5pr6](https://www.mbsplugins.de/archive/2021-11-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 7th November 2021 , last changed 7th November 2021

  
[DynaPDF.AddButtonImage](DynaPDFAddButtonImage.md) - [DynaPDF.AddContinueText](DynaPDFAddContinueText.md)

[HTML Version](DynaPDFAddButtonImageEx2.shtml)