# Javascript: CheckFormField.setCheckedCharacter Method

> Sets the character which is used to display the checkbox in the checked state.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: CheckFormField.setCheckedCharacter Method
- **386 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/checkformfield/setcheckedcharacter-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/checkformfield/setcheckedcharacter-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/checkformfield/setcheckedcharacter-method/llms-full.txt

---

### Description

Sets the character which is used to display the checkbox in the checked state.

### Syntax

```javascript
<void> CheckFormField.setCheckedCharacter(<String> character, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| character | The character which is used to display the checkbox in the checked state. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `CheckFormField.setCheckedCharacter` in a practical document-editing workflow. It sets the character which is used to display the checkbox in the checked state.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureCheckedCharacter(checkFormField) {
    checkFormField.setCheckedCharacter(
        "✓",
        function() {
            console.log("set checked character completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: CheckFormField.setChecked Method](https://docs.textcontrol.com/ds-server/reference/javascript/checkformfield/setchecked-method/llms-full.txt)
- **Next:** [Javascript: CheckFormField.setUncheckedCharacter Method](https://docs.textcontrol.com/ds-server/reference/javascript/checkformfield/setuncheckedcharacter-method/llms-full.txt)
