DynaPDF.GetFieldType
--------------------

Returns the field type.

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

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

**MBS**( **"DynaPDF.GetFieldType";** /\* Returns the field type. \*/  
**$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 type or error.

### Description

Returns the field type.  
The type can be Button, CheckBox, RadioButton, ComboBox, Listbox, Text, Signature or Group.  
See also [GetFieldType](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldType.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetFieldExpValue](DynaPDFGetFieldExpValue.md)
- [DynaPDF.GetFieldFlags](DynaPDFGetFieldFlags.md)
- [DynaPDF.GetFieldGroupType](DynaPDFGetFieldGroupType.md)
- [DynaPDF.GetFieldMapName](DynaPDFGetFieldMapName.md)
- [DynaPDF.GetFieldName](DynaPDFGetFieldName.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldDate](DynaPDFSetFieldDate.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)
- [DynaPDF.SetFieldIndex](DynaPDFSetFieldIndex.md)
- [DynaPDF.SetFieldName](DynaPDFSetFieldName.md)

This function checks for a license.

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

  
[DynaPDF.GetFieldToolTip](DynaPDFGetFieldToolTip.md) - [DynaPDF.GetFieldsAsJSON](DynaPDFGetFieldsAsJSON.md)

[HTML Version](DynaPDFGetFieldType.shtml)