MuhammadHaseeb-
2 years agoCommunity Member
Import variable from SCROM to moodle LMS
I have made an e-learning course in articulate storyline 360, which is having a variable name score, that is updated on viewing each slide, so I want to get the value of the variable score and export it to Moodle LMS. I have the following javascript code but didn't work for me. Does anyone have a solution for this problem?
var lmsAPI = parent;
var player = GetPlayer();
var myScore = player.GetVar("LMS");
lmsAPI.SetScore(myScore,100,80);