Javascript: TXTextControl.removeTextField Method

The removeTextField method removes a text field from the document.

Introduced: 25.0.


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

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


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