Forum Discussion
Getting student name from the LMS and using it in Articulate
In the LMS we are about to use, we can get the student name since the SCORM runtime variable for it is "cmi.core.student_name". However, how do I get it as a variable in Articulate at run time?
- KayodeArowoloCommunity Member
Hey Matthew,
You are my HERO! I can't thank you enough.
- KayodeArowoloCommunity Member
Would you know why the print function is not working? When I try to print the certificate I receive the error message "There was an internal error, and IE is unable to print this document"
- ElleLinklaterCommunity Member
Hi Matthew,
Can you let me know how to add the trigger to have the certificate run when time timeline starts. I would like the certificate to add the first and last
Thanks for sharing with everyone Aaron.
Welcome to E-Learning Heroes :)
- asmaahamedCommunity Member
Thanks for sharing this, it was really helpful thread!
I got an issue when applying this on IE11, it seems to be only working if the publishing was flash with HTML, yet it's not working in the HTML5 format?
Hi Azza,
Are you having an issue with the code that Aaron shared?
It looks like he used it with HTML5, but perhaps it's the difference in browser or LMS. You could also look at testing it in SCORM Cloud to further narrow down where the issue could be.
Lastly, when you're launching it in IE - do you see an error message or a different behavior than expected? If you can share a bit more detail that may be just the hint the community needs to help with this custom code.
Thanks, Claudius for letting us know that this same code works in your LMS. I'm certain that tidbit will be welcomed by other SABA users.
- ThomasAlbrig879Community Member
I tried this in CSOD with Storyline 360 but it didn't work. Do you have a working sample that I could use to troubleshoot the functionality?
Thanks!!!
- KevinHayesCommunity Member
I've been trying to use this code on SCORM Cloud but it isn't working for me:
var player = GetPlayer();
function findLMSAPI(win) {
// look in this window
if (win.hasOwnProperty("GetStudentID")) return win;// all done if no parent
else if (win.parent == win) return null;// climb up to parent window & look there
else return findLMSAPI(win.parent);
}
var lmsAPI = findLMSAPI(this);
var myName = lmsAPI.GetStudentName();
var array = myName.split(',');
var newName = array[1] + ' ' + array[0];
player.SetVar("newName", newName);Is it because SCORM cloud stores the name under a variable name other than StudentID?
Has anyone managed to get this to retrieve the learner ID from SCORM cloud?