# TXTextControl.IncludeTextField Object

> Represents an MS Word specific INCLUDETEXT field. Is used as a parameter for the addMergeField method.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > TXTextControl.IncludeTextField Object
- **513 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/llms-full.txt

---

### Description

Represents an MS Word specific INCLUDETEXT field. Is used as a parameter for the [addMergeField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/addmergefield-method/llms-full.txt) method.

### Syntax

```javascript
TXTextControl.IncludeTextField
```

### Examples

The following example demonstrates `TXTextControl.IncludeTextField` in a practical document-editing workflow. It represents an MS Word specific INCLUDETEXT field. Is used as a parameter for the addMergeField method.

```javascript
function inspectIncludeTextField(includeTextField) {
    console.log("TXTextControl.IncludeTextField object:", includeTextField);
}
```

---

## In This Section

- [Javascript: TXTextControl.IncludeTextField.bookmark Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/bookmark-property/llms-full.txt): Specifies the bookmark switch of the field.
- [Javascript: TXTextControl.IncludeTextField.fileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/filename-property/llms-full.txt): Specifies the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
- [Javascript: TXTextControl.IncludeTextField.preserveFormatting Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/preserveformatting-property/llms-full.txt): Specifies whether the field's formatting should be preserved.
- [Javascript: TXTextControl.IncludeTextField.text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/text-property/llms-full.txt): Specifies the initial text of the field. Let this property be null to use the default text "INCLUDETEXT".
- [Javascript: TXTextControl.IncludeTextField.textFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/textformat-property/llms-full.txt): Specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.images Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/images-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.IncludeTextField.bookmark Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/bookmark-property/llms-full.txt)
