DS Server

Javascript: TXTextControl.MergeField.textBefore Property

Property|Introduced in 25.0

Description

Specifies the text of the field that is displayed before the field's text.

Syntax

<string> TXTextControl.MergeField.textBefore

Examples

The following example demonstrates TXTextControl.MergeField.textBefore in a practical document-editing workflow. It specifies the text of the field that is displayed before the field's text.

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