Forum Discussion
Retrieve LMS User Name as Variable
Hey, Andrew -
Should be able to grab the value through a JavaScript function. This won't work in HTML5 at the moment but should be fine in the Flash based version. Try this in a JavaScript trigger:
var player=GetPlayer();
player.SetVar("sLearnerName", SCORM_GetStudentName());
This'll grab the Student Name using the built in function in SCORMFunctions.js and push it into a variable called sLearnerName. If you need to arrange it differently you may need to split to an array and arrange the First / Last as separate parts before pushing in.
- OgbishBarrow8 years agoCommunity Member
Hello please I need help on executing this. What is the simplest way to create a flow with this. E.g. Where do I insert the code, what should the next slide show and how do I create a display that will welcome the person
- JoshMassey6 years agoCommunity Member
Steve,
I doubt you pay any attention to this 7 years later - but I just had to say thanks! I have been racking my head against this keyboard for hours...all I needed was the SCORM_ component to work with the LMS we are using.
So excited!