Using Sliders for Quiz Score
Jul 06, 2016
Okay, I'm a bit stumped here.
I have a series of questions where users answer using a slider. I'd like each question to contribute to an overall score. Once they've completed the assessment, the goal is to display a particular layer depending on their score.
But I'm not quite sure what triggers to use. Each slider is its own variable (ex. Slider01) and I've created a number variable called QuizTotal. I've tried adding a value of 1 to QuizTotal every time Slider01 moves but it adds 1 for each slider movement (back and forth). I've tried adding variable Slider01 to QuizTotal when a user clicks a Submit button, but it doesn't add anything. I've also tried adding a condition (ex. add value of 3 to QuizTotal if Slider01 is equal to 3). None of this has worked.
Any ideas?
8 Replies
Hi Jordan!
Not sure if I'm understanding correctly, but I put together an example of what I think you are looking for.
Edit - attachment deleted as it did not assist user and I did not want that to be confusing to others.
Thanks for the reply, but that's the same issue I'm getting. Do you see when you drag the slider backward how it increases the total? That's not what I'd like.
I'd like for only the value of where the slider ends up to contribute to the total. So, for example, if you drag it all the way to 3, then to 2, and then back to 3, I'd like the total to be 3, not 8.
Aaaahhh, I see it now. I made some changes and did not re-check that Jordan. I'll take another look in a bit. I'm deleting the .story file above to prevent further confusion.
Have a look at the attached and see if that's more what you want.
Oh wow, I like that Michael. I do not believe I've ever toggled a variable like that. Works great in this scenario.
Jordan - I defer to the Hero solution shared here :) Much better than I would have come up with myself.
Okay, very good, Michael. That's pretty much exactly what I'm looking for, except for one thing.
How would you make the total accumulate over multiple slides? The first variable resets the Total on the next slide. See attached.
In that case, I would use subtotals for each slide and calculate the total based on the subtotals. Have a look at the attached and see if that idea would work for you.
You've done it, Michael! Very impressive. I see why they call you a hero.
This discussion is closed. You can start a new discussion or contact Articulate Support.