How can I turn off my textfield
Temporarily I use this to clear out my fields (username and password) in onShow :
setTimeout(function () { $$(prefix + "-form").clear();}, 500);
Need delay for seconds and I try something like this :
var uname = document.getElementsByClassName("username");
var upass = document.getElementsByClassName("password");
uname.setAttribute( "autocomplete", "off" );
upass.setAttribute( "autocomplete", "off" );
Still doesn’t work, any solution how to clear all fields even though browser remember the credential