Forum Discussion
LMS Course Name JavaScript Action
This may be more dependent on your LMS API, than Rise. Since there is a function called GetStudentName() that you are successfully using, what are the functions associated with the course or learning object? Student names are stored in SCORM as well, so those are pretty easy to retrieve no matter which API is in play. With the Cornerstone LMS there are a few (very few) global variables we can employ in HTML. One trick I use is to launch the course, open the Dev tools > Console and start typing Get.. With the API already loaded, and context typing, you can see the API classes available - maybe Course-something is there.
- JoeLloyd-17dcfe2 years agoCommunity Member
Thank you for your reply Craig,
i have managed to follow this and found the function "classroomName" which returns the right value, however i am now unsure as to what the java script code would be to get this a function to then change the variable named "CourseName" to "classroomName"
i tried the following but didnt appear to work..... Player.SetVar ("CourseName", classroomName);