Forum Discussion
JoeLloyd-17dcfe
3 years agoCommunity Member
LMS Course Name JavaScript Action
Morning all,
I am hoping someone will be able to support me here, I am trying to have a JavaScript action that will set my "CourseName" the code i am using is as follows;
var player=GetPlayer();...
CraigBunyea-23d
3 years agoCommunity Member
So much like lmsAPI.GetStudentName(); fetches the variable myName, there should be a function within lmsAPI that can retrieve the className. Use your console and type "lmsAPI." and scroll to all the Get functions, there are likely many. Just guessing, it could be lmsAPI.GetClassroomName(); but everything's case-sensitive of course.
That is what you'll add to the right of =
PhilMayor
3 years agoSuper Hero
LMSSPI doesn’t normally have course name suspect there is a ERS API as well
Sent from my iPhone