Manipulating System Generated Variables
May 02, 2014
By
John Nixdorf
Is it possible to directly manipulate (e.g. increment) system-generated variables like Results.PassPoints and Results.PassPercent?
Reason I ask is that I have a quiz bank of 21 questions from which 12 will be randomly drawn. I want to give the participant the option of quitting in the middle and getting credit for however many questions they've completed.
However, while I can construct a route for the participant to get from whichever question they're quitting from to the results page, I find that Results.PassPercent is calculated on the basis of 21 questions (total in the question bank) and not 12 questions (total drawn from the question bank for the quiz).
Any workarounds you can suggest will be welcome.
4 Replies
These variables are read-only. You can only assign the value of one of these variables to a custom variable and then manipulate that custom variable.
OK, I can do that.
My question then is how do I have the results page report out based on the custom variable?
There is some javascript that is supposed to do that but I haven't tested it.
Check out this blogpost: link
You can update the layout of a Results screen any way you want to and display your custom variables.
To report the custom score to your LMS, you can adapt the script snippet Owen pointed to. I have used a similar script in the past and it did report a custom score.
This discussion is closed. You can start a new discussion or contact Articulate Support.