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
I'm now trying to use the same script as my earlier post to grab the course ID (replacing StudentID with CourseID and learner with course in script), but can't seem to get it to return. I've tried to set up an alert like this:
alert(lmsAPI.GetCourseID());
But no pop-up message appears. I tried to add the var lmsAPI = parent line, but no luck. I double checked the variable name in the AICCFunctions.js file and there is a variable titled AICC_CourseID. Any idea why this isn't coming back for me, yet I get the StudentID with no problem?