DynaPDF.SetActiveSigField
-------------------------

Sets the signature field that should be signed.

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

MBS( "DynaPDF.SetActiveSigField"; PDF; Field ) 

**MBS**( **"DynaPDF.SetActiveSigField";** /\* Sets the signature field that should be signed. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**) /\* The index of the field. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets the signature field that should be signed.  
If a PDF file contains more than one signature field, the first signature field without a value is selected for signing by default.  
If a different signature field should be signed, call this function with the desired handle.  
If the signature field contains already a value or signature, the function returns with an error and the field to be signed is not changed.  
See also [SetActiveSigField](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetActiveSigField.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 15.3**
    - Added [DynaPDF.SetActiveSigField](https://www.mbsplugins.eu/DynaPDFSetActiveSigField.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr3](https://www.mbsplugins.de/archive/2025-06-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 10th June 2025 , last changed 10th June 2025

  
[DynaPDF.ScaleCoords](DynaPDFScaleCoords.md) - [DynaPDF.SetAlpha](DynaPDFSetAlpha.md)

[HTML Version](DynaPDFSetActiveSigField.shtml)