DynaPDF.GetFieldColor
---------------------

Retrieves a specific color of an interactive form field.

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

MBS( "DynaPDF.GetFieldColor"; PDF; Field; FieldColor; Selector ) 

**MBS**( **"DynaPDF.GetFieldColor";** /\* Retrieves a specific color of an interactive form field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$FieldColor**; /\* Which color to query.  
BackColor, BorderColor or TextColor.e.g. "TextColor" \*/   
**$Selector**) /\* What to return. This can be ColorSpace or Color. For RGB colorspace also Red, Green or Blue to get component.e.g. "Color" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| FieldColor | Which color to query.   BackColor, BorderColor or TextColor. | "TextColor" |
| Selector | What to return. This can be ColorSpace or Color. For RGB colorspace also Red, Green or Blue to get component. | "Color" |

### Result

Returns value or error.

### Description

Retrieves a specific color of an interactive form field.  
The parameter ColorSpace defines the color space in which the color was defined.  
See also [GetFieldColor](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldColor.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CreateButton](DynaPDFCreateButton.md)
- [DynaPDF.GetFieldBackColor](DynaPDFGetFieldBackColor.md)
- [DynaPDF.GetFieldCount](DynaPDFGetFieldCount.md)
- [DynaPDF.GetFieldTextColor](DynaPDFGetFieldTextColor.md)
- [DynaPDF.SetFieldColor](DynaPDFSetFieldColor.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)
- [DynaPDF.SetFieldIndex](DynaPDFSetFieldIndex.md)
- [DynaPDF.SetFieldTextColor](DynaPDFSetFieldTextColor.md)
- [DynaPDF.SetFieldToolTip](DynaPDFSetFieldToolTip.md)
- [DynaPDF.SetFillColor](DynaPDFSetFillColor.md)

This function checks for a license.

Created 18th August 2014 , last changed 17th July 2022

  
[DynaPDF.GetFieldChoiceValue](DynaPDFGetFieldChoiceValue.md) - [DynaPDF.GetFieldCount](DynaPDFGetFieldCount.md)

[HTML Version](DynaPDFGetFieldColor.shtml)