Forum Discussion
ChrisPim-f7a22b
3 years agoCommunity Member
Moodle issue reporting the student name
Hi,
We have some courses created in Storyline 360, exported as SCORM packages and hosted in Moodle
We use the Javascript code below which ran on enter slide and always worked just fine.....
JoeFrancis
3 years agoCommunity Member
What is returned in Storyline if you populate the Storyline variable newName with the Javascript variable myName? I commented out lines 3 & 4.
var lmsAPI = findLMSAPI(this);
var myName = lmsAPI.GetStudentName();
//var array = myName.split(',');
//var newName = array[1] + ' ' + array[0];
player.SetVar("newName", myName);
I'm curious that it wasn't returning "Pim Chris", as the correct SCORM format for cmi.core.student_name is last name, first name and middle initial, with last name and first name separated by a comma.