> 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/switchtagcontrol.md).

# switchTagControl

Changes the tag control to edit mode and vice versa.

### Parameters

1. controlId - String with the control id.
2. editMode - Optional boolean to determine if the control should be in edit mode or not. If not stated, the control will switch to it's other mode.

### Example Usages

```javascript
   brixxApi.switchTagControl('fieldId');
```

```javascript
   brixxApi.switchTagControl('fieldId', true);
```
