# Javascript: TextField.getDoubledInputPosition Method

> Sets whether a text field has a doubled input position in front of its first character and behind its last character.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TextField.getDoubledInputPosition Method
- **433 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getdoubledinputposition-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getdoubledinputposition-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getdoubledinputposition-method/llms-full.txt

---

### Description

Sets whether a text field has a doubled input position in front of its first character and behind its last character.

### Syntax

```javascript
<void> TextField.getDoubledInputPosition(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives whether a text field has a doubled input position in front of its first character and behind its last character. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TextField.getDoubledInputPosition` in a practical document-editing workflow. It sets whether a text field has a doubled input position in front of its first character and behind its last character.

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

function inspectDoubledInputPosition(textField) {
    textField.getDoubledInputPosition(
        function(result) {
            if (result) {
                console.log("get doubled input position is available.");
            } else {
                console.warn("get doubled input position is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TextField.getDeleteable Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getdeleteable-method/llms-full.txt)
- **Next:** [Javascript: TextField.getEditable Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/geteditable-method/llms-full.txt)
