DynaPDF.GetFieldExpValue
------------------------

Retrieves the export value(s) of a check box, list box, or combo box.

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

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

**MBS**( **"DynaPDF.GetFieldExpValue";** /\* Retrieves the export value(s) of a check box, list box, or combo box. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**) /\* The field index or field name.e.g. "FirstName" \*/ 

### Parameters

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

### Result

Returns value or error.

### Description

Retrieves the export value(s) of a check box, list box, or combo box.   
The field must be a valid field handle of a check box, list box or combo box.   
The export value of a check box can be either "Off" if the check box is not selected or an arbitrary string when the check box is selected.  
The export value of a combo box or list box can be empty when no value is selected.  
Since Acrobat 5, list boxes support multiple selected values. In this case the export values are delimited by a newline character.  
The field type can be determined with the functions [DynaPDF.GetFieldType](DynaPDFGetFieldType.md), [DynaPDF.GetField](DynaPDFGetField.md) or [DynaPDF.GetPageField](DynaPDFGetPageField.md).  
See also [GetFieldExpValue](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldExpValue.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetField](DynaPDFGetField.md)
- [DynaPDF.GetFieldChoiceValue](DynaPDFGetFieldChoiceValue.md)
- [DynaPDF.GetFieldExpValueEx](DynaPDFGetFieldExpValueEx.md)
- [DynaPDF.GetFieldTextColor](DynaPDFGetFieldTextColor.md)
- [DynaPDF.GetFieldType](DynaPDFGetFieldType.md)
- [DynaPDF.GetPageField](DynaPDFGetPageField.md)
- [DynaPDF.GetTextFieldValue](DynaPDFGetTextFieldValue.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldMapName](DynaPDFSetFieldMapName.md)
- [DynaPDF.SetFillColorValue](DynaPDFSetFillColorValue.md)

This function checks for a license.

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

  
[DynaPDF.GetFieldExpValCount](DynaPDFGetFieldExpValCount.md) - [DynaPDF.GetFieldExpValueEx](DynaPDFGetFieldExpValueEx.md)

[HTML Version](DynaPDFGetFieldExpValue.shtml)