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.....
PhilMayor
3 years agoSuper Hero
Good question
var lmsAPI = findLMSAPI(this);
var myName = lmsAPI.GetStudentName();
var array = myName.split(',');
var newName = array[1] + ' ' + array[0];
var newName = newName.replace(/[undefined ]+/g, "");
player.SetVar("newName", newName);
That is where I would put it