Disable autocomplete on forms
Just a little question
Do you know how to disable automcomplete on all widgets or on all forms ?
Thanks a lot.
Hi Fabien, Are you talking about the autocompletion of your browser? Which types of widgets are you using?
Indeed Bonita UI Designer widgets used in forms do not handle autocompletion, except for one specific widget called "autocomplete"
Thanks for your precision
in addition of the first response,
looks to work for the latest web browser.
If you are able to test it.
Thanks for your answers.
Where to call this command, because it seems to work in the browser's console, but not in an asset ?
I tried your workaround without success.
Tried in a text widget or in an input widget, inside my form but still the issue.
I've got an error : Error evaluating < disableAutoComplete > data: Cannot read property 'setAttribute' of undefined
It seems the object isn't known when evaluating the variable.
When you click on the DOM object then execute the expression in console, it works... but not when calling into a variable.
unfortunately "autocomplete="off" is not supported by all web browser.
It looks more secured to randomize the input name attribute. This would prevents auto-completion for all browsers.
- You could have a look at this jquery plugin:
Hope that helps,