DS Server

Javascript: TXTextControl.MergeField.numericFormat Property

Property|Introduced in 25.0

Description

Specifies a string format which is applied to numeric values. Is equivalent to the MS Word field flag “\#”.

Syntax

<string> TXTextControl.MergeField.numericFormat

Examples

The following example demonstrates TXTextControl.MergeField.numericFormat in a practical document-editing workflow. It specifies a string format which is applied to numeric values. Is equivalent to the MS Word field flag "\#".

function inspectNumericFormat(mergeField) {
    const numericFormat = mergeField.numericFormat;
    console.log("numeric format:", numericFormat);
}