Javascript: TXTextControl.MergeField.textFormat Property
Description
Specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.
Syntax
<MergeFieldTextFormat> TXTextControl.MergeField.textFormatExamples
The following example demonstrates TXTextControl.MergeField.textFormat in a practical document-editing workflow. It specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.
function inspectTextFormat(mergeField) {
const textFormat = mergeField.textFormat;
console.log("text format:", textFormat);
}