---
description: Add or set a unit in front of a numeric or text field.
---

# setFieldUnit

## Parameters

1. controlId - Id of the control
2. The string value of the unit you want to set. If this parameter is not set, the unit will be removed.

## Example Usages

Simple textbox

```javascript
app.setFieldUnit("myControlId", "€");
```

Remove unit

```javascript
app.setFieldUnit("myControlId");
```

### Return Values

Function does not explicitly produce return value.
