Custom result tracking on LMS

Finally I have successfully completed this task. Also this is perfectly working on LMS.

Here is the code:

var player=GetPlayer();
var customScore=player.GetVar("storylineCustomScoreVariable");

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(customScore, 100, 0);

 

Here is the few suggestions:

1. Delete submit result trigger from result slide.

2. Create a blank slide and a dummy variable

3. add all values is blank slide

4. Publish project and keep LMS tracking on Page Completed setting

Be the first to reply