Calling StudentID from LMS
Aug 03, 2015
Hi guys,
I'm creating a course that needs to display the StudentID value from the LMS. To do this I've tried to replicate the Javascript that I used for StudentName (which works like a dream), and adjust it to work for the StudentID, but I'm clearly missing something.
Below is the Javascript I'm using, I took out the parts form the StudentName script that add spaces and put the name in the correct order etc. I understand most of it except the use of "myName" which I tried changing to myID, but still no avail.
var player = GetPlayer();
var myName = lmsAPI.GetStudentID();
player.SetVar("userID", userID);
//myName = player.GetVar('myName');
//player.SetVar("userID", userID);
If anyone has had some success with this please let me know.
1 Reply
Hi William,
Thanks for reaching out here and Javascript is not something we can offer support for, but definitely something our community members are able to weigh in on regularly. You may also want to begin by reviewing the information here.
This discussion is closed. You can start a new discussion or contact Articulate Support.