# Javascript: TXTextControl.getRedoActionName Method

> Gets a string that represents the name of the action that will be performed when a call to the redo method is made.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.getRedoActionName Method
- **338 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getredoactionname-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getredoactionname-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getredoactionname-method/llms-full.txt

---

### Description

Gets a string that represents the name of the action that will be performed when a call to the [redo](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/redo-method/llms-full.txt) method is made.

### Syntax

```javascript
<void> TXTextControl.getRedoActionName(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the name of the action that will be performed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TXTextControl.getRedoActionName` in a practical document-editing workflow. It gets a string that represents the name of the action that will be performed when a call to the redo method is made.

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

TXTextControl.getRedoActionName(
    function(result) {
        console.log("get redo action name result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.getPermanentControlChars Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getpermanentcontrolchars-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.getRenderMode Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/getrendermode-method/llms-full.txt)
