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....
IsraelRodriguez
12 years agoCommunity Member
I'm trying to generate a certificate that contains the name of the student. I created a button that opens an html file with the certificate design, and the code I'm using is:
var player=window.opener.GetPlayer();
var learnerName=player.GetVar("newName");
document.write("
" +learnerName+ "
");
Yet, I'm getting undefined as a result. What am I doing wrong?