Javascript: TXTextControl.ApplicationField Constructor
Description
Initializes a new instance of the ApplicationField class.
Syntax
TXTextControl.ApplicationField([<string> typeName], [<string> text], [<string[]> parameters])Parameters
| Parameter | Description |
|---|---|
| typeName | Optional. The merge field type ("MERGEFIELD", "DATE", "IF" etc.). The default value is "MERGEFIELD". |
| text | Optional. Specifies the visible text of the field. The default value is "«MERGEFIELD»". |
| parameters | Optional. The ApplicationField's parameters. |
Examples
The following example demonstrates TXTextControl.ApplicationField in a practical document-editing workflow. Initializes a new instance of the ApplicationField class.
const applicationField = TXTextControl.ApplicationField("MERGEFIELD", "Quarterly report", ["CustomerName", "\\* MERGEFORMAT"]);
console.log("Created TXTextControl.ApplicationField value:", applicationField);