---
description: Sets the text color for a control to one of the predefined colors
---

# setTextColor

## Parameters

1. controlId - the id of the control to change the color
2. colorName - one of these colors: "default", "primary", "secondary", "success", "danger", "warning"

## Example Usages

### Set Color to "warning"

```javascript
app.setTextColor("myControl", "warning");
```

### Set Color to default

```javascript
app.setTextColor("myControl");
```

### Return Values

Function does not explicitly produce return value.
