Javascript: TXTextControl.MergeField.preserveFormatting Property
Description
Specifies whether the field's formatting should be preserved.
Syntax
<boolean> TXTextControl.MergeField.preserveFormattingExamples
The following example demonstrates TXTextControl.MergeField.preserveFormatting in a practical document-editing workflow. It specifies whether the field's formatting should be preserved.
function inspectPreserveFormatting(mergeField) {
const preserveFormatting = mergeField.preserveFormatting;
console.log("preserve formatting:", preserveFormatting);
}