# FormTextFieldInsert Method

> Inserts a text form field at the input position with an initial text and an optional width in twips shown while the field is empty (2000 twips by default).

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FormTextFieldInsert Method
- **367 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formtextfieldinsert-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formtextfieldinsert-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formtextfieldinsert-method/llms-full.txt

---

This method inserts a text input field for a form into the document at the current text input position. If such a field is empty, it can be set to a specified width so that the end-user can see where to enter text.

Introduced: 28.0.

### Syntax

```vbscript
TXTextControl.FormTextFieldInsert FieldText [, EmptyWidth]
```

### Parameters

| Parameter | Description |
|---|---|
| FieldText | Specifies the text contents for the new field. |
| EmptyWidth | Optional. Specifies the field's width, in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips), when it is empty. If this parameter is omitted, a default width of 2000 twips is used. |

### Return Value

The method returns True if the text formfield could be inserted, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| FieldText | String |
| EmptyWidth | Integer |
| Return value | Boolean |

### Remarks

Inserting a form field changes the value of the [FieldCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcurrent-property/llms-full.txt) property to the identifier of the newly created field.

### See Also

- [FormCheckBoxInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formcheckboxinsert-method/llms-full.txt)
- [FormComboBoxInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formcomboboxinsert-method/llms-full.txt)
- [FormDateFieldInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formdatefieldinsert-method/llms-full.txt)
- [FormDropDownListInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formdropdownlistinsert-method/llms-full.txt)
- [Programming Category: Form Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/form-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FormSelectedItemChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formselecteditemchanged-event/llms-full.txt)
- **Next:** [FormulaReferenceStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formulareferencestyle-property/llms-full.txt)
