# Javascript: TextFieldInfo.text Property

> The text field's text content.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TextFieldInfo.text Property
- **145 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/text-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/text-property/llms-full.txt

---

### Description

The text field's text content.

### Syntax

```javascript
<string> TextFieldInfo.text
```

### Examples

The following example demonstrates `TextFieldInfo.text` in a practical document-editing workflow. The text field's text content.

```javascript
function inspectText(textFieldInfo) {
    const text = textFieldInfo.text;
    console.log("text:", text);
}
```

---

## Nearby

- **Previous:** [Javascript: TextFieldInfo.start Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/start-property/llms-full.txt)
- **Next:** [Javascript: TextFieldInfo.type Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/type-property/llms-full.txt)
