I have created a trigger on the first slide of my SL2 course with the js that communicates with CSOD to retrieve the name and places this in a variable.
I need to publish in 2004 because I am trying to report on the assessments that I've created in SL2. I need to know how many people are getting a question right/wrong. TinCan isn't an option for me because Cornerstone wants to charge extra $$ for us to use the API. (not sure if this was a contract item, but beyond my control)
Any help is greatly appreciated. The syntax below is the JS being successfully used in SCORM 1.2. I believe this code came from someone on the boards or elsewhere - I apologize that I don't recall the name to give credit.
//grab the LMS object
var lmsAPI = parent
//ask the LMS object to get the name
var rawName = lmsAPI.GetStudentName();
//the name comes very formal "Last, First"
//we will fix that by sticking the name into an array
var nameArray = rawName.split(",")
//get the first name
var firstName = nameArray;
//get the last name
var lastName = nameArray;
//now we grab the Articulate player
var p = GetPlayer();
//finally we set our Articulate vars to our js values
THANK YOU SO MUCH FOR HELPING!!