Forum Discussion
JoeLloyd-17dcfe
2 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();...
PhilMayor
2 years agoSuper Hero
I am out of the office for the next three days so cannot look at some old courses. Are you pulling the name and date into the certificate already in the storyline block if you are the code should be working did you run the last one I posted with opening and closing parentheses?
- JoeLloyd-17dcfe2 years agoCommunity Member
indeed i copied and pasted the code exactly as you had sent it but it is still pulling through blank
this is the exact code i have in at the moment
var player=GetPlayer();
var externalCourseID = classroomName();
player.SetVar("CourseName", externalCourseID);