The page can contain a text field that may have a different type depending on other conditions. It would be nice to remove widget and initialize another one on the same text field.
This should be attained by removing the widget from the pertinent DOM element, using the remove() method. If you need a complete example on that, contact our support team.