DynaPDF.GetFieldExpValCount
---------------------------

The function returns the number of values/export values which are defined for a field.

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

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

**MBS**( **"DynaPDF.GetFieldExpValCount";** /\* The function returns the number of values/export values which are defined for a field. \*/  
**$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 number or error.

### Description

The function returns the number of values/export values which are defined for a field.   
Supported field types are combo boxes, list boxes, radio buttons, and check boxes. If the field is a radio button, the function returns the number of check boxes which are connected with the radio button. This number can be used to access the check boxes of the radio button either with [DynaPDF.GetFieldExpValueEx](DynaPDFGetFieldExpValueEx.md) or [DynaPDF.SetFieldExpValue](DynaPDFSetFieldExpValue.md). If the field is a check box, the return value is always 1 because check boxes do not support multiple export values. However, this function is normally used to determine the number of available choice values within a combo box or list box because only these field types support multiple choice values. See also [DynaPDF.GetFieldExpValueEx](DynaPDFGetFieldExpValueEx.md).  
If the function succeeds the return value is the number of values/export values which are defined for a field.   
See also [GetFieldExpValCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldExpValCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetField](DynaPDFGetField.md)
- [DynaPDF.GetFieldChoiceValue](DynaPDFGetFieldChoiceValue.md)
- [DynaPDF.GetFieldCount](DynaPDFGetFieldCount.md)
- [DynaPDF.GetFieldExpValue](DynaPDFGetFieldExpValue.md)
- [DynaPDF.GetFieldExpValueEx](DynaPDFGetFieldExpValueEx.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldExpValue](DynaPDFSetFieldExpValue.md)
- [DynaPDF.SetFieldExpValueEx](DynaPDFSetFieldExpValueEx.md)

This function checks for a license.

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

  
[DynaPDF.GetFieldCount](DynaPDFGetFieldCount.md) - [DynaPDF.GetFieldExpValue](DynaPDFGetFieldExpValue.md)

[HTML Version](DynaPDFGetFieldExpValCount.shtml)