Forum Discussion
Learner enters number which registers score on LMS
I created a Survey Question "How Many" slide so the learner can enter a numeric response. All survey questions can be reported to LMS. I created a custom number variable 'scoreEntered' equal to 0, and two triggers as follow:
On the next slide, I referenced the "scoreEntered" variable and created "Execute JavaScript" trigger when the timeline starts on this slide, with the below code:const LMS = parent;
let scoreEntered= GetPlayer().GetVar('scoreEntered');
LMS.SetScore(scoreEntered, 100, 0);
This way the typed value gets reported to LMS setting a score equal to the typed value.
I am attaching my .story file so you can take a look of more in details. Ignore disabled triggers, and layer 'alert' if you don't need it.
- sandramuir2 years agoCommunity Member
Wow!
Nedim, THANK YOU very much for sharing the file and taking the time to help!
At a quick glance, when comparing my file to yours, I notice I have followed some of the same steps, but I went wrong somewhere. What you shared has helped so much. I have tested my project in my LMS with your guidance and I am able to reach my deadline in time with your solution. Again, thank you!!!