# RequestColorStringCallback Function

> Callback function for requests expecting a CSS color string.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Path:** DS Server > Reference > JavaScript API > RequestColorStringCallback Function
- **165 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestcolorstringcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestcolorstringcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/requestcolorstringcallback/llms-full.txt

---

### Description

Callback function for requests expecting a CSS color string.

### Syntax

```javascript
function(<string> color)
```

### Examples

The following example demonstrates `RequestColorStringCallback` in a practical document-editing workflow. Callback function for requests expecting a CSS color string.

```javascript
function requestColorStringCallback(color) {
    console.log("color:", color);
}

TXTextControl.getBackColor(requestColorStringCallback);
```

---

## Nearby

- **Previous:** [RequestCollectionElementCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requestcollectionelementcallback/llms-full.txt)
- **Next:** [RequestCommentCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/requestcommentcallback/llms-full.txt)
