Hello, how to prevent browser chrome to ask save password in TextBox with PasswordChar?, in asp.net there is autocomplete=”off” or autoCompleteType=”disable”.
Thanks,
Mariano
Hi Mariano,
Good question. We will add the AutoCompleteType property to the TextBox class. However, modern browsers more or less all ignore this attribute, but there are some workarounds, see https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion.
You can easily patch the base javascript class that creates input elements in wisej by addin this code in Default.html:
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <script src="wisej.wx"></script> <script> Wisej.onLoad = function () { // define the MAutoComplete mixin // to override the _createInputElement method. qx.Mixin.define("MAutoComplete", { members: { _createInputElement: function () { return new qx.html.Input("text", null, { autocomplete: "off" }); }, } }); // patch the textfield base class using the MAutoComplete mixin. qx.Class.patch(qx.ui.form.AbstractField, MAutoComplete); } </script> </head> <body></body> </html>
You can add more attributes and and choose the value to set.
Best,
Luca
Hi Mariano,
please note that we added AutoComplete property to TextBox to make it use/deny browsers autocomplete.
We also added TextBox.AutoCompleteList that allows to set any list to be used for auto completion.
Both are included with our latest build (1.3.6.)
Best regards
Frank
Thanks Frank and Luca, awesome support!