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
8 years agoCommunity Member
Hi, Julie -
This one works fine for me in HTML5. The problem with the beginning of the thread was the use of a function that only worked in Flash. The example below is available to both Flash and HTML5:
https://community.articulate.com/discussions/articulate-storyline/retrieve-lms-user-name-as-variable?page=6#reply-388873
var player = GetPlayer();
lmsAPI=parent;
var myName = lmsAPI.GetStudentName();
var array = myName.split(',');
var newName = array[1];
player.SetVar("newName", newName);