Forum Discussion
AnikaGlischi352
3 years agoCommunity Member
Adding user name to training using JavaScript
Hello. I am trying to add the user's name to the training via Java Script. (Bottom of slide 1.2) When I test this in Scorm Cloud, the last name is pulled in (I want the first name, so not sure if t...
MathNotermans-9
Community Member
Checking the docx. You are apparently logged in anonymous and not as a student. Do get a test account as student in which you really need to login as student and i guess it will work then. When checking the debug code i see a complex url with a lot of numbers, but in the end its index_lms.html... and the username that gets returned is 'Anonymous'. So the normal steps of splitting them in separate surname and familyname will fail... as the username is 'Anonymous'.
So getting a real test account with proper username will probably fix it.
AnikaGlischi352
3 years agoCommunity Member
Ok, I will test that!
Thanks again for your time and wisdom!!! :)