Forum Discussion
LMS Course Name JavaScript Action
Phil, I wasn't assuming he was using any SCORM API because unfortunately you're right about the SCORM spec. What I was going from was Joe writing "and found the function 'classroomName' which returns the right value". So however that value was returned via the console that he said he could use, he should replicate that to the right of the externalCourseID =
Joe, employing the function classroomName (however you did that in the console) requires a pair of trailing parentheses and likely some quoted parameter inside those parens. Copy/paste that text to the right of
var externalCourseID = classroomName('some parameter');
and see what happens. Of course make sure your single/double quotes are never stylized, curled, etc. What LMS are you working with? Their API documentation is probably online and we might be able to research that function a little more.
Thank you so much all for the support…..
The LMS I am using is ESR (Electronic Staff Records) which is an NHS system used by most organisations in some capacity in the UK
as previously mentioned i have managed to get the java-script to work for finding the users name and copy and paste over a project variable which is grabbing that information from the system. And ive also managed to get the date working (however i know this doesn't need to come from the LMS this can be based on the system date)
Thank you all for this support i really appreciate it