Forum Discussion
Auto-complete appearing in Text Entry boxes
Problem that needs solving:
Multiple users complete the same quiz on the same computer. When completing the quiz after the first time, the Text Entry box has auto-complete options appearing in the browser.
Obviously with a Quiz, this isn't a good option and I need to disable it.
Publish settings: SCORM: HTML5 with Flash fallback
Delivery: Moodle 3.7 - Issue was noted on a Chrome Browser.
NOTE 1:
I don't think this was an issue when I published in Flash with HTML5 fallback, but I'm not 100% sure.
NOTE 2:
Chrome settings aren't an option (it's 1000's of users).
I also don't really want to dive into the SCORM package and re-write code (there's 96 packages)
Ideally a Storyline setting fix or a JavaScript on Master Slide Timeline Start would work best.
- TimDanesCommunity Member
Thanks for the suggestion, but it's not possible. 1,000's of users, spread across multiple independent locations. There's no centralised IT Dept.
If there isn't a setting inside Storyline, then based on the following article (which relates to HTML), I'm assuming there might be a JavaScript fix. Not sure.
https://www.w3docs.com/snippets/html/how-to-disable-browser-autocomplete-and-autofill-on-html-form-and-input-fields.html - TimDanesCommunity Member
Thanks for the heads up. I've added it, and I'll wait to hear from the client as to whether it works for them (I'm not able to test it from my side).
Cheers.
- TimDanesCommunity Member
Heard back from the client. It would seem that it works as expected. Nice work Matthew, very appreciated.
- MaryCole-7190aaCommunity Member
I'm having the same issue, but I put the code on the master slide and it did not work. Any suggestions?
- JesseSutton-6ceCommunity Member
Hey Mary,
I implemented this successfully (Thank you Matthew!) by using the "Execute Javascript when the timeline starts" trigger on every slide master. So, create the trigger, and then copy and paste it on each main and sub-master slide.
Hopefully that's helpful!
Jesse S.
- RANDYNOVIONCommunity Member
Thanks Matthew!
This worked like a charm! - TabithaMountainCommunity Member
Any additional suggestions? I've added the javascripting to each slide master and included the suggested trigger, but am still having trouble with auto-fill using Chrome.
- TimDanesCommunity Member
As per @Matthew Bibby's suggestion, I use the following code for mine.
var els = document.getElementsByTagName('input');
for (var i=0; i < els.length; i++)
{
els[i].setAttribute("autocomplete", "off");
}Keep in mind that it is the browser (not the Storyline file) that is auto-correcting.
i.e. When I add this code, the browser will still 'remember' the Storyline object, and so auto-correct appears for me until I clear the cache, but doesn't appear for new users.
- HARRYBUGARINCommunity Member
Hello,
How do I paste that code into the slide master?
- TabithaMountainCommunity Member
Hi Harry,
You should be able to copy the text from the string into a text box on the Master slide(s). Then also remember to add the execute java script variable when the timeline begins on the slide.
----------------------------------------------------------------------
The information transmitted is intended only for the person(s) or entity to which it is addressed and may contain confidential and or privileged material and should be treated as a confidential The Auto Club Group communication. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review, dissemination, distribution, or copying of this message including any attachments is strictly prohibited.
- MaryCole-7190aaCommunity Member
We ended up solving this by giving the text fields unique names. This kept browsers from entering information from previous text fields.
- HARRYBUGARINCommunity Member
Thanks for the reply.
I did give the text entry boxes a unique name but still not cooperating. Confirming the name to the right of the lock icon?
- MaryCole-7190aaCommunity Member
Sorry, I didn't describe the solution correctly. It's not enough to change the name to the right of the lock. Look at the trigger where it shows TextEntry or TextEntry1, etc. in a highlighted color. If you click on that, you may see the same variable associated with text fields on multiple slides. This can happen when you duplicate a slide. If you create each slide by inserting a new Fill-in-the-Blank slide, each associated variable will have a unique name. That seemed to be the issue for us.
- HARRYBUGARINCommunity Member
Thank you for the reply. I will try and follow your instructions as best as I can.
Thanks,
- MariaCSStaff
Hi, Harry.
I just wanted to add a quick note: it looks like your email signature with contact information came through when you replied via email. You can remove it by clicking ‘Edit’ below your response. Here’s a quick Peek 360 video if you need help.