# SelectionFormField Object

> The SelectionFormField objet represents a combobox or a drop-down list on a form. It can be initially empty and it can have a horizontal extension, when it is empty. Depending on whether it is editable, the SelectionFormField is either a combobox or a drop-down list.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > SelectionFormField Object
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/#members)

---

## In This Section

- [Javascript: SelectionFormField.getEmptyWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/getemptywidth-method/llms.txt): Gets the horizontal extension, in twips, of the selection formfield, when it is empty.
- [Javascript: SelectionFormField.getIsDropDownArrowVisible Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/getisdropdownarrowvisible-method/llms.txt): Gets a value indicating whether a dropdown arrow is shown so that the user can select an item.
- [Javascript: SelectionFormField.getItems Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/getitems-method/llms.txt): Gets a list of items for the SelectionFormField. An item must not be an empty string.
- [Javascript: SelectionFormField.getSelectedIndex Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/getselectedindex-method/llms.txt): Gets the index of the selected item of the SelectionFormField. If the property value is -1, no item is selected and the currently selected item is deselected.
- [Javascript: SelectionFormField.setEmptyWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/setemptywidth-method/llms.txt): Sets the horizontal extension, in twips, of the selection formfield, when it is empty.
- [Javascript: SelectionFormField.setIsDropDownArrowVisible Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/setisdropdownarrowvisible-method/llms.txt): Sets a value indicating whether a dropdown arrow is shown so that the user can select an item.
- [Javascript: SelectionFormField.setItems Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/setitems-method/llms.txt): Sets a list of items for the SelectionFormField. An item must not be an empty string.
- [Javascript: SelectionFormField.setSelectedIndex Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/setselectedindex-method/llms.txt): Sets the index of the selected item of the SelectionFormField. If the property value is -1, no item is selected and the currently selected item is deselected.

---

## Nearby

- **Previous:** [Javascript: SelectionBounds.start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionbounds/start-property/llms.txt)
- **Next:** [Javascript: SelectionFormField.getEmptyWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selectionformfield/getemptywidth-method/llms.txt)
