Forum Discussion
AndreaBorsoi-1d
4 years agoCommunity Member
Getting student name from Moodle
Is there any way to capture the student full name from Moodle and to pass it into Storyline360? I would like to show it in a SL slide and then use the same variable in a PDF document that I would li...
Nedim
4 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.