Javascript: TXTextControl.removeTextField Method

The removeTextField method removes a text field from the document.

Introduced: 25.0.

Syntax

[JavaScript]
<void> TXTextControl.removeTextField(<TextField> textField, <boolean> keepText);
Parameter Description
textField

The text field to remove from the document. Allowed types are TXTextControl.TextField and TXTextControl.ApplicationField. Must have been retrieved with getTextFields beforehand.

keepText

If this parameter is set to true, the field is removed without deleting its visible text. Otherwise, the field's text is also deleted.

See Also