Form Entry Not Detecting Chrome Auto-filled Content
January 30, 2018 12:00 AM
Hi Folks,
I've got a page at the end of my course where a learner types their name into a form field, which is then passed as a variable to a piece of Javascript which generates a certificate of completion and embeds their name.
This is all working well, but one of our users found that if they use Chrome's autofill functionality (i.e. type 'C', click 'Cam Phillips' from the autocomplete dropdown to populate the field) that this data isn't being logged to the Entry_0001 variable... so they would get a certificate with only 'C' (letters they actually entered on the keyboard).
I see no option within Lectora to disable autofill - expected as this is governed by browser settings.
Has anyone experienced this, or devised a workaround?
Thanks in advance!
Cam
Discussion (3)
If you're publishing to an LMS, try using the variable AICC_Student_Name, which Lectora will auto-populate from the LMS, instead of asking the learner to type it in.
If you're not publishing to an LMS, you can try undefined
They may not work in all browsers, but that's the best I've got.
Hi Stan,
These ones are being deployed to both a HTML website and LMS - I've set the courses up to:
* Check if AICC_Student_Name is 'null' or contains data
* If 'null' (as in HTML version) direct learners to name entry page and generate certificate
* If non 'null', skip the name entry, split and reorder first/last name from AICC_Student_Name and drop this straight into certificate
This way I can just keep one version of the course and not have to replicate any changes across multiple files!
I'll give that Javascript a go and see if it works, thanks for the suggestion!
Discussions have been disabled for this post