Passing Calculated Variable Back to LMS

Mar 16, 2022


I created a drag and drop activity that added a point to a "Total" custom numeric variable for each correct response to allow for partial scoring. I would like that calculated "Total" score to pass back to my LMS. I've tried lots of suggestions that I found on this forum (adding a survey question, using JavaScript), but have not been successful. Any additional ideas? My example file is attached. 

Thanks in advance!

10 Replies
Tami Taylor

I've tried the survey questions - this process (at the bottom) doesn't work because the Short Answer question won't recognize the variable as a TextEntry (I'm guessing because it's a number?) I tried to do the same thing using a How Many survey question, which does allow me to replace the NumericEntry variable with my "Total". However, when I preview, it always asks for an entry and won't even progress onto the results slide. I've also tried to insert the variable into the box, but no luck doing that either. 

Maria Costa-Stienstra

Hi, Tami.

Since Total is a NumericEntry, you have to use the How Many survey type, as you mentioned above.

I like to create the following triggers:

  • Set NumericEntry to variable Total when the timeline starts.
  • Submit interaction when the timeline ends 

On your Results slide, you also need to make sure the survey question is checked:

Windows 10 (1) 2022-03-17 at 10.29.31 AM

I'm attaching the edited file here, but maybe Phil will have a different or better suggestion for you! 

Let me know if this works!