Student Name from LMS with Javascript 360

Aug 22, 2017

Hi Guys,
I have been using the below javascript in storyline 2 to pull my Learners name from the LMS. I have created a new project in storyline 360 and the same code does not seem to be working in either HTMl5 or Flash output.

var player = GetPlayer();

var myName = lmsAPI.GetStudentName();

var array = myName.split(',');

var newName = array[1] + ' ' + array[0];

player.SetVar("newName", newName);

Is anyone using a similiar javascript to achieve the same thing?

2 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.