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[1] + ' ' + array[0];
player.SetVar("newName", newName);
//myName = player.GetVar('myName');
//player.SetVar("newName", newName);
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