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.
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