# Javascript: TXTextControl.NextIfField.preserveFormatting Property

> Specifies whether the field's formatting should be preserved.

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

---

### Description

Specifies whether the field's formatting should be preserved.

### Syntax

```javascript
<boolean> TXTextControl.NextIfField.preserveFormatting
```

### Examples

The following example demonstrates `TXTextControl.NextIfField.preserveFormatting` in a practical document-editing workflow. It specifies whether the field's formatting should be preserved.

```javascript
function inspectPreserveFormatting(nextIfField) {
    const preserveFormatting = nextIfField.preserveFormatting;
    console.log("preserve formatting:", preserveFormatting);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.NextIfField.operator Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-nextiffield/operator-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.NextIfField.text Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-nextiffield/text-property/llms-full.txt)
