Javascript: TXTextControl.TextField Constructor
Description
Initializes a new instance of the TextField class.
Syntax
TXTextControl.TextField([<string> text])Parameters
| Parameter | Description |
|---|---|
| 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);