Removes a field of the type ApplicationField from a TX Text Control document. The visible text is deleted depending on the keepText parameter.

<void> ApplicationFieldCollection.remove(<ApplicationField> applicationField, <Boolean> keepText, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
applicationField Specifies the field to remove.
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.
callback Optional. Receives true, if the field could be removed. Otherwise, it is false.
errorCallback Optional. Is called when the operation failed with an error.