Well, this post is a little old, but I thought I would answer anyway. Maybe this will help someone else.
You are right that after the element has been rendered, its type has been set to “password” in the DOM. Thus, we need to directly manipulate the DOM. Let's say I have a window that has 1 element, a FormPanel, and I have 1 element in this FormPanel, a text box. I initially set it inpupType: "password" in my settings. Now I want to change that. Here is what I will do:
this.get (0) .getForm (). get (1) .getEl (). dom.type = 'text'
(I assume this is in an event handler that has an area of my window)
This will change the DOM and immediately display my password as text. To change it:
this.getForm (). get (1) .getEl (). dom.type = 'password'
In a real situation, I would not use get (index), but either set a name for the text field, or use find, or I would create a var that points to the text field.
Hope this helps someone.
Ricky
source share