Forum Discussion
Text entry bug in latest update
Yes, this should work...just change the text in quotes to what you need...now if you have more than one input this may not work and you may have to target a specific input as of right now this works on all inputs.
var els = document.getElementsByTagName('input');
for (var i=0; i < els.length; i++) {
els[i].value=" ";
els[i].setAttribute("onfocus", "this.value=' ' ");
els[i].setAttribute("placeholder", "this.value=' Your text here ' ");
els[i].setAttribute("autocomplete", "off");
}
- MarkAnthonyChes4 years agoCommunity Member
Thanks Daniel!
I have a snag... I have text input questions across 10 layers on a slide.
Using your code on each layer, when the layer is revisited, the boxes are
empty along with the variable value assigned to that text box....any
ideas????Thanks again!
- MarkAnthonyChes4 years agoCommunity Member
After some experimentation, I discovered that when the name fields are filled by Google Autofill, it wants to autofill all of the text boxes in the project...
Is there really no way to turn Google Autofill off from within the player???
Is there any way to name the elements so Google will not want to autofill? I tried naming the name boxes red, blue and green but with no change...
UPDATE: I was surfing around and found the chrome-off and it seems to stop the chrome autofill, but not the answers from previous attempts. But I does not break the rest of the input boxes on other slides, so 50% win....
var els = document.getElementsByTagName('input');
for (var i=0; i < els.length; i++) {
els[i].value="";
els[i].setAttribute("onfocus", "this.value='' ");
els[i].setAttribute("autocomplete", "chrome-off");
} - MarkAnthonyChes4 years agoCommunity Member
Thank you Daniel!!!