# Javascript: ListFormat.getRestartNumbering Method

> Gets a value determining whether a new numbered list begins.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: ListFormat.getRestartNumbering Method
- **361 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/listformat/getrestartnumbering-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/listformat/getrestartnumbering-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/listformat/getrestartnumbering-method/llms-full.txt

---

### Description

Gets a value determining whether a new numbered list begins.

### Syntax

```javascript
<void> ListFormat.getRestartNumbering(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives whether a new numbered list begins. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `ListFormat.getRestartNumbering` in a practical document-editing workflow. It gets a value determining whether a new numbered list begins.

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

TXTextControl.listFormat.getRestartNumbering(
    function(result) {
        if (result) {
            console.log("get restart numbering is available.");
        } else {
            console.warn("get restart numbering is not available in the current document state.");
        }
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: ListFormat.getNumberFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/listformat/getnumberformat-method/llms-full.txt)
- **Next:** [Javascript: ListFormat.getTextAfterNumber Method](https://docs.textcontrol.com/ds-server/reference/javascript/listformat/gettextafternumber-method/llms-full.txt)
