# Javascript: TXTextControl.ApplicationField.typeName Property

> The merge field type ("MERGEFIELD", "DATE", "IF" etc.).

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

---

### Description

The merge field type ("MERGEFIELD", "DATE", "IF" etc.).

### Syntax

```javascript
<string> TXTextControl.ApplicationField.typeName
```

### Examples

The following example demonstrates `TXTextControl.ApplicationField.typeName` in a practical document-editing workflow. The merge field type ("MERGEFIELD", "DATE", "IF" etc.).

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.textParts.getMainText(function(mainText) {
    const applicationFields = mainText.applicationFields;
    applicationFields.getItem(function(applicationField) {
        if (!applicationField) {
            console.warn("No application field is available at the current input position.");
            return;
        }
    
        const typeName = applicationField.typeName;
        console.log("type name:", typeName);
    }, onTxError);
}, onTxError);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.ApplicationField.showDialog Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-applicationfield/showdialog-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.ApplicationFieldFormat Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/applicationfieldformat-enumeration/llms-full.txt)
