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....
MattGalbraith1
9 years agoCommunity Member
Hello! I'm having some trouble getting a Student ID to display. I set an alert to get the Student ID and it pops up with the info displayed perfectly, but I can't seem to transfer that StudentID variable into my Storyline project. Here is my code:
var player = GetPlayer ();
var learnerID = lmsAPI.GetStudentID();
player.SetVar("learnerID", learnerID);
It might help to note that we use Cornerstone for our LMS. Any ideas?