I have already pulled user name (first name & last name) from Moodle in SCORM 1.2 package (built with Articulate Storyline 2) using this JS code below :
var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var array = myName.split(',');
var newName = array + ' ' + array;
//myName = player.GetVar('myName');
In the code above, lmsAPI.GetStudentName() is used to retrieve student's name from Moodle.
I am trying to retrieve other data specially the email id from Moodle. How can i do that ? What should i replace lmsAPI.GetStudentName() with to get the email id in my SCORM 1.2 course ? What does Moodle call the email id field ?
Moodle version : 2.6