# FormComboBoxInsert Method

> Inserts a combobox form field at the input position with its text, TAB-separated items, an optional dropdown arrow and an empty width in twips (default 2000).

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

---

This method inserts a combobox into the document at the current text input position. It has the specified items and the specified text.

Introduced: 28.0.

### Syntax

```vbscript
TXTextControl.FormComboBoxInsert FieldText, Items, ShowDropDownArrow [, EmptyWidth]
```

### Parameters

| Parameter | Description |
|---|---|
| FieldText | Specifies the text contents in the edit field of the combobox. |
| Items | Specifies the combobox's items. The items must be separated with 09 (TAB) control characters. |
| ShowDropDownArrow | Specifies whether the combobox's dropdown arrow is immediately shown after insertion. |
| EmptyWidth | Optional. Specifies the combobox's width, in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips), when its edit field is empty. If this parameter is omitted, a default width of 2000 twips is used. |

### Return Value

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

### Data Types

| Name | Data type |
|---|---|
| FieldText | String |
| Items | String |
| ShowDropDownArrow | Boolean |
| 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)
- [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)
- [FormTextFieldInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formtextfieldinsert-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:** [FormCheckStateChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formcheckstatechanged-event/llms-full.txt)
- **Next:** [FormDateChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formdatechanged-event/llms-full.txt)
