# Javascript: TXTextControl.ApplicationField Constructor

> Initializes a new instance of the ApplicationField class.

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

---

### Description

Initializes a new instance of the ApplicationField class.

### Syntax

```javascript
TXTextControl.ApplicationField([<string> typeName], [<string> text], [<string[]> parameters])
```

### Parameters

| Parameter | Description |
|---|---|
| typeName | Optional. The merge field type ("MERGEFIELD", "DATE", "IF" etc.). The default value is "MERGEFIELD". |
| text | Optional. Specifies the visible text of the field. The default value is "«MERGEFIELD»". |
| parameters | Optional. The ApplicationField's parameters. |

### Examples

The following example demonstrates `TXTextControl.ApplicationField` in a practical document-editing workflow. Initializes a new instance of the ApplicationField class.

```javascript
const applicationField = TXTextControl.ApplicationField("MERGEFIELD", "Quarterly report", ["CustomerName", "\\* MERGEFORMAT"]);
console.log("Created TXTextControl.ApplicationField value:", applicationField);
```

---

## Nearby

- **Previous:** [TXTextControl.ApplicationField Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-applicationfield/llms-full.txt)
- **Next:** [Javascript: TXTextControl.ApplicationField.parameters Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-applicationfield/parameters-property/llms-full.txt)
