DS Server

Javascript: TXTextControl.TextField Constructor

Constructor|Introduced in 25.0

Description

Initializes a new instance of the TextField class.

Syntax

TXTextControl.TextField([<string> text])

Parameters

ParameterDescription
text

Optional. Specifies the visible text of the field. The default value is "«MERGEFIELD»".

Examples

The following example demonstrates TXTextControl.TextField in a practical document-editing workflow. Initializes a new instance of the TextField class.

const textField = TXTextControl.TextField("Quarterly report");
console.log("Created TXTextControl.TextField value:", textField);