# Javascript: TXTextControl.NextIfField.text Property

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

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

---

### Description

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

### Syntax

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

### Examples

The following example demonstrates `TXTextControl.NextIfField.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 "NEXTIF".

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.NextIfField.preserveFormatting Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-nextiffield/preserveformatting-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.NumberFormat Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/numberformat-enumeration/llms-full.txt)
