Forum Discussion
Nedim
3 years agoCommunity Member
Hi Andrea,
GetStudentName() and GetStudentID() are both SCORM functions. These functions are available in Moodle all the time when a course is published to SCORM and uploaded to Moodle. GetStudentName() will most likely show your learner's name, and GetStudentID() will show your learner's email address registered in the system. To display it in SL, create one or two balnk text variables in SL: "studentName" and "studentID". Insert it as a reference into a text box. Create "Execute Javascript" trigger with the code below: GetPlayer().SetVar('studentID', SCORM2004_GetStudentID())
GetPlayer().SetVar('studentName', SCORM2004_GetStudentName())
I assume you are using SCORM2004 standards to publish your course. Hope this help.