# Javascript: TextFieldCollection.addWithText Method

> Adds a new TextField with the given text to the collection.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TextFieldCollection.addWithText Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/#syntax)
- [Parameters](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/#parameters)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/addwithtext-method/#examples)

---

## Nearby

- **Previous:** [Javascript: TextFieldCollection.add Method](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/add-method/llms.txt)
- **Next:** [Javascript: TextFieldCollection.clear Method](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldcollection/clear-method/llms.txt)
