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?
Standard javascript debugging principles are a great starting point. For example is GetPlayer returning a valid object reference, and lmsAPI exist in the global namespace?
2 Replies
Standard javascript debugging principles are a great starting point. For example is GetPlayer returning a valid object reference, and lmsAPI exist in the global namespace?
I had the same problem. I found adding the code below from this thread above my code worked.
This discussion is closed. You can start a new discussion or contact Articulate Support.