Forum Discussion
BilliSwitals189
4 years agoCommunity Member
Text Entry - Remove "saved data"
Hello all you experts out there!!
This project has a text entry field that we are using as a Password field. There is one issue. When the user returns to the page, the text field is empty yet when...
PhilMayor
4 years agoSuper Hero
Could try running this on timeline start:
for (var i=0; i < els.length; i++) {
els[i].setAttribute("autocomplete", "off");
}
- BilliSwitals1894 years agoCommunity Member
Thanks Phil - Can you help me understand what this code means? I'm not a javascript coder yet. Do I need to replace anything?
- Jürgen_Schoene_4 years agoCommunity Member
trigger: timeline starts
document.querySelectorAll('input').forEach( textarea => {
if( textarea.classList.contains( "acc-textinput")){
textarea.setAttribute("autocomplete", "off");
}
});result:
https://360.articulate.com/review/content/6dbb0707-5c4b-457b-a0a2-3f9910c961aa/reviewJürgen
Related Content
- 2 months ago