Forum Discussion
Everything we know about Cornerstone on Demand and Storyline!
Dear all,
Anybody here any experience with pulling participants name and date of completion from Cornerstone? I could use a little help.
I made a certificate slide on which the first and last name of the participant and also the date of completion should appear. I used a trigger to execute JavaScript when timeline starts, this is the JS:
var lmsAPI = parent;
var name = lmsAPI.GetStudentName();
var nameArray = name.split(", ");
var firstName = nameArray[1];
var lastName = nameArray[0];
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=day + "/" + month + "/" + year
var player = GetPlayer();
player.SetVar('first_name',firstName);
player.SetVar('last_name',lastName);
player.SetVar("date_completion",dateString);
It works fine for me when I test it in ScormCloud. But my client tells me it doesn't work for him. They use Cornerstone. It instantly got me wondering about the difference between ScormCloud and Cornerstone.
My first question is: is the JavaScript I used correct for Cornerstone?
My second question is: could the configuration of Cornerstone or safety measures on my clients side be a problem?
Thanks in advance!
Hello, Marcus.
Did you ever get a response to this? I didn't see anything come through on the next page. I have a client using CSOD and I want to pull the preferred name, too.
Any help you can provide would be helpful!
Thank you,
Angie
hi @ beyondcontentco.com
- OwenHolt5 years agoSuper Hero
Angie, are you trying to pull the learner's name from CSOD?