Forum Discussion
Storyline - Moodle SetStatus
thank you so much Russell for your hard work. Appreciate that really.
i have also found a way to send intertions for a custom made quiz for each slide using a js trigger.
var lmsAPI = parent;
var player=GetPlayer();
var score1=player.GetVar("score1");
var optionsq1=player.GetVar("optionsq1");
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("Question1",optionsq1 ,true ,"Correct_Option1" ,"This is Question 1" ,score1 ,"" ,"Course1" ,date , "choice");
the only issue now is that everytime i click the button which executes the trigger, a duplicate interaction is sent to the lms and it gets stored which makes it confusing. how can the duplicate entries avoided ? can it be overwritten on top of previous interaction for each quiz ?
I have attached a story file with custom quiz.
Related Content
- 10 months ago
- 11 months ago
- 9 months ago
- 7 months ago