Storyline custom interaction tracking
It is working absolutely fine in Storyline 2 as it should.
But the main issue is that the exact same module is not working when published from Storyline 3. It's not recording any interactions in Moodle.
Here is the JS code I am using in Storyline 2:
var lmsAPI = parent;
var date = new Date();
//this calls the SCORM API to record a custom interaction
//(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, //intWeighting, intLatency, strLearningObjectiveID, dtmTime, //scormInteractionType)
lmsAPI.SCORM_RecordInteraction("marker1","m1" ,true ,"m1clicked" ,"This is Marker 1" ,score1 ,"" ,"Course1" ,date , "choice");
I have also attached the Storyline 2 demo and the published SCORM file.