# Javascript: TXTextControl.TextFieldPosition Enumeration

> Specifies special text input positions at the beginning and the end of a text field.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.TextFieldPosition Enumeration
- **354 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/textfieldposition-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/textfieldposition-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/textfieldposition-enumeration/llms-full.txt

---

### Description

Specifies special text input positions at the beginning and the end of a text field.

### Members

| Member | Description |
|---|---|
| InsideTextField | The specified position is inside the field. |
| OutsideTextField | The specified position is outside the field. |
| InsideNextTextField | The specified position is inside the next field. This member is only possible, if there are two following text fields without any character bewteen the fields. In this case InsideTextField is in the first field, OutsideTextField is between the fields and InsideNextTextField is in the second field. |

### Examples

The following example uses `TXTextControl.TextFieldPosition.InsideTextField` (the specified position is inside the field.) in a document-editing workflow.

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

TXTextControl.setInputPositionByTextPosition(
    -1,
    TXTextControl.TextFieldPosition.InsideTextField,
    function() {
        console.log("set input position by text position completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.TextField.type Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-textfield/type-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.textFieldsEditable Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/textfieldseditable-property/llms-full.txt)
