DS Server

Javascript: TXTextControl.MergeField.text Property

Property|Introduced in 25.0

Description

Specifies the text of the field.

Syntax

<string> TXTextControl.MergeField.text

Examples

The following example demonstrates TXTextControl.MergeField.text in a practical document-editing workflow. It specifies the text of the field.

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