Forum Discussion
LMS not displaying Quiz Score as Game Score
I’m using JavaScript to send the game score to our LMS, but I need the raw score (e.g., 19,000 points) to display instead of just ‘Complete’ or a percentage. We’re incentivizing high scores for prizes, and I used the storyline Jeopardy template Sarah shared here in the community discussion. After the game ends, the results only show as ‘Status: Complete.’ I believe the JavaScript and Articulate tracking settings are correct, so I’m wondering if this might be a limitation on Paycom’s side. Any thoughts or suggestions?
Javascript used:
let player = GetPlayer();
let score = player.GetVar("score");
let lmsAPI = window.parent;
lmsAPI.SetScore(score,21250, 0);
8 Replies
- MaheshMahajanCommunity Member
Hi Clee1,
Please use the code below to submit the score to the LMS. I hope this works with your LMS.
var player = GetPlayer();
var score = player.GetVar("score");
function findLMSAPI(win) {
if (win.hasOwnProperty("GetStudentID")) return win;
else if (win.parent == win) return null;
else return findLMSAPI(win.parent);
}
//get LMS API
var lmsAPI = findLMSAPI(this);
lmsAPI.SetScore(score,21250, 0);
- CierraL1Community Member
Thank you. I tried this javascript and it gave me a percentage and the status as complete still. I'm thinking it is a Paycom Learning limitation.
MaheshMahajan just wanted to chime in and say I appreciate you for jumping in and sharing a technical solution! Super generous of you. CierraL1, I'm sorry to hear it sounds like you're running into some LMS limitations—wondering if you've reached out to Playcom already to see if this is a known issue on their end?
- CierraL1Community Member
Yes, I actually have! We meet with Paycom soon and I will report back on what solutions, if any, we come up with for other Storyliners who use Paycom.
- seorobinsmith12Community Member
This does sound more like an LMS-side limitation than a Storyline or JavaScript issue.
Even if you’re successfully capturing the raw score in a variable, most LMS platforms (including Paycom) only display completion status or percentage unless they support custom score fields or xAPI statements.
I’ve faced similar limitations while working on game-based scoring systems outside traditional LMS reporting, where the raw score was stored correctly but not displayed in the LMS UI.
You may want to explore xAPI as a workaround or confirm directly with Paycom whether raw numeric scores can be mapped and displayed.
(Sharing my experience here — more details are mentioned on my profile if helpful.)
Related Content
- 7 months ago
- 10 months ago