Forum Discussion
AndrewRost
13 years agoCommunity Member
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....
SteveFlowers
Community Member
Hi, James - Which code are you using? This works for me in HTML5 publish.
var player=GetPlayer();
lmsAPI=parent;
var username=lmsAPI.GetStudentName();
player.SetVar("SLVariable",username);
//alert(username);
OgbishBarrow
8 years agoCommunity Member
Hello, please may I ask - is this the code for retrieving names from LMS? if so, where do I insert it. I am pretty new to Articulate