Javascript to Extract Usernames from Articulate Online and Moodle

Hi all - 

I was wondering if anyone knew if it's possible to extract the username names from Articulate Online via Java Script to populate a variable. For example, could I have a certificate at the end of the course that will populate the first and last name of the user from Articulate Online?

As well, is it possible to accomplish this using Moodle?

If someone could point me in the right direction I think I can start making a stab at the javascript...

4 Replies
Jason N

Thanks for the link - I think this should work for moodle - I'll have to
play around with it.

Does anyone know if the following script would work for articulate online?

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);