Forum Discussion
How to calculate the score with number variable when users change the selection
Hi Erin
Happy to help. You can see my example in action here - https://360.articulate.com/review/content/302f2197-5dd8-4ab8-a71c-d8f5faf9a4e4/review I've shown the current scores for each variable so you can track what's going on - they aren't there in the finished version.
I've attached the SL file so you can see the triggers used to do it.
This is the process:
(1) A variable is assigned a score depending on which button is clicked (Using a button set for each set)
(2) ONLY when 'submit' button is clicked is that score added to another variable which keeps a total - this avoids people adding on extra amounts if they click other buttons
(3) As the next page the clickable variables are all sent back to zero, ready for the next input- the total variables stay the same ready for this new next page's results to be added when the 'submit' button is pressed
I also included the results page to show how I show results for this sort of survey (Please note I've only included a couple of the 5 pages of questions & have taken out all of the explanation & application that came at the end of this)
Let me know how you get on. And feel free to ask if this doesn't make sense! 😜
Justin