DynaPDF.SetTextFieldValueEx
---------------------------

The function changes or sets the value of a text field.

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

MBS( "DynaPDF.SetTextFieldValueEx"; PDF; Field; Value ) 

**MBS**( **"DynaPDF.SetTextFieldValueEx";** /\* The function changes or sets the value of a text field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$Value**) /\* New value or "" to delete it.e.g. "Andreas" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| Value | New value or "" to delete it. | "Andreas" |

### Result

Returns OK or error.

### Description

The function changes or sets the value of a text field.   
If the value is set to empty, the field's value will be deleted.  
The strings are drawn with the font that is associated with the field. The font size is taken from the field settings. If set to "auto", the font size is computed from the field's bounding box.  
See also [SetTextFieldValueEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetTextFieldValueEx.shtml) function in DynaPDF manual.

### Examples

Sets text field value:

 MBS ( "DynaPDF.SetTextFieldValueEx"; $PDF ; "FirstName"; "Jack" )  
### See also

- [DynaPDF.FlattenAnnotOrField](DynaPDFFlattenAnnotOrField.md)
- [DynaPDF.GetPageField](DynaPDFGetPageField.md)
- [DynaPDF.GetTextFieldValue](DynaPDFGetTextFieldValue.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldExpValueEx](DynaPDFSetFieldExpValueEx.md)
- [DynaPDF.SetTextFieldValue](DynaPDFSetTextFieldValue.md)

### Blog Entries

- [MBS Filemaker Plugin, version 4.1pr4](https://www.mbsplugins.de/archive/2014-03-09/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.SetTextFieldValue](DynaPDFSetTextFieldValue.md) - [DynaPDF.SetTextRect](DynaPDFSetTextRect.md)

[HTML Version](DynaPDFSetTextFieldValueEx.shtml)