Hi,

I created a pop win for changing user password. How can I do if I want to show hidden password by click a button. It means how can I change inputType by code.

code below,

items: [{
fieldLabel: "Login ID",
name: "txtLoginID",
allowBlank: false,
anchor: '100%',
disabled: true
}, {
fieldLabel: 'Old Password',
allowBlank: false,
name: 'txtOldPassword',
inputType:"password",
anchor: '100%' //
}
, {
fieldLabel: 'New Password',
allowBlank: false,
name: 'txtPassword',
//inputType:"password",
anchor: '100%' //
}, {
xtype: 'textarea',
fieldLabel: 'Comments',
allowBlank: false,
name: 'txtDescription',
height: 80,
anchor: '100%' //
}]

}]

Many thanks
Thomson