# TextFormField Object

> The TextFormField object represents a text input field on a form. It can be initially empty and it can have a horizontal extension, when it is empty.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > TextFormField Object
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/#members)

---

## In This Section

- [Javascript: TextFormField.getEmptyWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/getemptywidth-method/llms.txt): Gets the horizontal extension, in twips, of the text formfield, when it is empty.
- [Javascript: TextFormField.setEmptyWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/setemptywidth-method/llms.txt): Sets the horizontal extension, in twips, of the text formfield, when it is empty.

---

## Nearby

- **Previous:** [Javascript: TextFieldInfo.type Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/type-property/llms.txt)
- **Next:** [Javascript: TextFormField.getEmptyWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/textformfield/getemptywidth-method/llms.txt)
