Forum Discussion
Retrieve LMS User Name as Variable
I know you can have a user fill in a text box with their name and then later use that variable for personalization. What we would like to do is programmatically retrieve the user name from the LMS. Is there a way to set a variable with data from the LMS when the course is loaded instead of having the user enter their name?
Thx
- SteveFlowersCommunity Member
Nope. Since the JS executes in the client browser, shouldn't matter which packaging is used.
- JamesBonney-EDECommunity Member
Thanks Steve, do you know why the codes just stop working?
As I said the code on page 6 worked for me on SL2, but not 360.
- JamesBonney-EDECommunity Member
Hmm I cant get that code to work for me Steve, I'll try again tomorrow and let you know.
ThanksJames
- OgbishBarrowCommunity Member
Hello Andrew, please can you tell me what exactly worked for you, and how I may go about using it. Is there a video?
- SallyMilfordCommunity Member
Hi all - I'm wondering if anyone might be able to put together a step-by-step guide as to how to set up a variable / javascript function for this? (i.e. pulling a user's first name from the LMS).
I've read through this discussion but I'm very green and have had no experience with javascript functions (and only basic variables).
Any help for dummies would be amazing.
Thanks,
Sal
- LucioCommunity Member
Hi Sally,
Which app are you using?
Hey Sally! It looks like Matthew sent you a handy step-by-step guide in this thread. I wanted to share that link here for anyone else in the thread who wants to do the same thing!
- KayodeArowoloCommunity Member
Hello, I know this thread is old (5 years ago) but I'm hoping that someone can help me. I'm trying to print the name of users on a certificate of completion. The names should be their registered names for the course. I tried the codes but it's not working for me. Please help anyone..Thanks
- KnutJackowskiCommunity Member
Hello Kayode!
There is a more recent thread here about this, that starts with code that works with current Articulate 3 in HTML5 and Flash output.
- KayodeArowoloCommunity Member
Hello for your prompt response. I have read the thread. Where should I copy the JavaScript? I mean on which slide? Thanks Kayode
Thanks so much for popping in to share that thread with Kayode here Knut. Much appreciated and should get them in the right direction.
- KayodeArowoloCommunity Member
Thanks Matthew.
Where should I place the test variables "first