Forum Discussion
Numeric Entry variables issue
Hi All
I have created a question slide that uses both numeric entry and text entry. The user clicks the submit button and the correct answers are displayed on the next slide with their answers. Although they are working fine, when I publish to Rise and preview the question, when I enter a number into a numeric entry box, a pop up box appears with a few numbers of previous attempts. I have set the slide to 'reset to initial state' but this still happens. This doesn't happen with the text entry boxes. Any ideas?
Here is a screen shot of what happens..
- MathNotermans-9Community Member
Adding to Phil's comment... you offcourse need to select all ( or any specific ) inputfield first.
https://360.articulate.com/review/content/fb2942eb-9b4f-4d53-a44e-b96e07d70575/review
Here you can see it work...
The complete code to set all inputfields in your slide to 'autocomplete off' is this.var inputs = document.getElementsByClassName('acc-shadow-el acc-textinput');
for(var i=0; i< inputs.length; i++){
inputs[i].setAttribute("autocomplete","off");
}
The sample as shown on Review added.- JCBlanchardCommunity Member
Thank you so much! This was driving me crazy!
- MathNotermans-9Community Member
This is a feature, not a bug :-) Oh my, wanted to say that for quite a while :-)
It is in fact a browser feature. Autocomplete. Remembering your last input and giving you a headsup on that for ease. Offcourse sometimes you donot want that and want it off. In normal HTML autocomplete="off" would work. As we probably cannot do that in Storyline, javascript might do the trick. - AlisonTrehearnCommunity Member
Great thanks Math.
- PhilMayorSuper Hero
You could try this execute on a slide master
for (var i=0; i < els.length; i++) {
els[i].setAttribute("autocomplete", "off");
} - AlisonTrehearnCommunity Member
Thanks Guys - so helpful! :-)
- GeorgeGiannopouCommunity Member
This is a great help. Just make sure you execute the javascript on the right layer.