I need to adjust or set the built in storyline variable. I wish to set %Results1.ScorePercent% to be equal to a variable that I have created to show the results of a custom simulation exercise. I was hoping to execute a JavaScript expression to set %Results1.ScorePercent% to be equal to my variable.
I tried the following as my custom variable is caller “score” with no luck.
var Results1.ScorePercent = score
Any advice is appreciated. I know how to override the results displayed on the slide. However, I want my custom score % to be submitted to the LMS with the "Submit" trigger.
I'm also looking to do something like this. It looks like the results variables are locked down. It would be great to be able to send a custom score to the LMS by adjusting the results variable.
Unfortunately, it's not currently possible to override the results score. Would you be up for logging a feature request to tell us more about your specific needs?
In the meantime, if there’s anything else I can do to help, please let me know!
3 Replies
I'm also looking to do something like this. It looks like the results variables are locked down. It would be great to be able to send a custom score to the LMS by adjusting the results variable.
Hi Ron,
Unfortunately, it's not currently possible to override the results score. Would you be up for logging a feature request to tell us more about your specific needs?
In the meantime, if there’s anything else I can do to help, please let me know!
Hi Ron.
Rename your storyline variable to 'Score' (capital S).
Try adding the following JavaScript to a trigger that executes when the timelines starts on your results slide and see if it works for you:
var player = GetPlayer();
var lmsAPI = parent;
var score = player.GetVar("Score");
lmsAPI.SetScore(score, 100, 0);
This discussion is closed. You can start a new discussion or contact Articulate Support.