# Javascript: TXTextControl.IncludeTextField.text Property

> Specifies the initial text of the field. Let this property be null to use the default text "INCLUDETEXT".

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.IncludeTextField.text Property
- **182 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-includetextfield/text-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-includetextfield/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-includetextfield/text-property/llms-full.txt

---

### Description

Specifies the initial text of the field. Let this property be null to use the default text "INCLUDETEXT".

### Syntax

```javascript
<string> TXTextControl.IncludeTextField.text
```

### Examples

The following example demonstrates `TXTextControl.IncludeTextField.text` in a practical document-editing workflow. It specifies the initial text of the field. Let this property be null to use the default text "INCLUDETEXT".

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.IncludeTextField.preserveFormatting Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-includetextfield/preserveformatting-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.IncludeTextField.textFormat Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-includetextfield/textformat-property/llms-full.txt)
