Forum Discussion
Adding user name to training using JavaScript
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.
- AnikaGlischi3523 years agoCommunity Member
Ok, I will test that!
Thanks again for your time and wisdom!!! :)
- AnikaGlischi3523 years agoCommunity Member
I did upload it into a course and test it in my regular user account, though....
Do you think the Single Sign On could interfere here?
- MathNotermans-93 years agoCommunity Member
I donot know CrossKnowledge well enough. Only thing i can see is that the username that gets sent back is 'Anonymous'. Whether that has to do with SSO or some other setting in CrossKnowledge i cannot tell. Best is test it with a pure student account. If you then still get 'Anonymous' back...well then there is something weird going on on CrossKnowledge side.
- AnikaGlischi3523 years agoCommunity Member
Never mind. I just opened in Chrome and it's fine!
Thank you so much for this and all your helpful tips!