> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/setfieldunit.md).

# setFieldUnit

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

### 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
   brixxApi.setFieldUnit("myControlId", "€");
```

Remove unit

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