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
But if it resolves directly in the console you should be able to use as is.
Sent from my iPhone
- JoeLloyd-17dcfe3 years agoCommunity Member
very very strange..... i am just not sure if i have set it up correctly but if the code is there and is being instructed and initiated the exact same as the other codes then it should be working in theory but for some reason it just isnt.....