I hope the attached example will be of assistance. Two separate count variables are associated with the two dials and a third variable, CounterTotal, displays the total of the two Dial variables.
The triggers are set up such that when you select the Add button, the first thing that happens is that CounterTotal is set to zero, then the value of Dial1 is added to CounterTotal and, finally, the value of Dial2 is added in. If you don't first set the CounterTotal variable to zero, the total will represent the previous total plus the new settings on the dials instead of only the total of the new values.
The Submit button should work in exactly the same way. Just make sure that if you are also using that to jump to a new slide that the triggers are in the right order. The "jump to next slide" trigger should be the last one in the list. If it comes before the variables are adjusted / added, the variables will not be changed as the slide will lose focus before the triggers can be executed.
You may not have written the actual assessment itself, but you did a great job of translating what was supplied to you on paper into a well laid out and engaging component of your course, so you should be happy with that. :)
You are too sweet! Actually, after everyone helped me and it was working perfectly, I did a great big happy dance and went out for dinner and wine!! ha ha
9 Replies
Hi Victoria,
I hope the attached example will be of assistance. Two separate count variables are associated with the two dials and a third variable, CounterTotal, displays the total of the two Dial variables.
The triggers are set up such that when you select the Add button, the first thing that happens is that CounterTotal is set to zero, then the value of Dial1 is added to CounterTotal and, finally, the value of Dial2 is added in. If you don't first set the CounterTotal variable to zero, the total will represent the previous total plus the new settings on the dials instead of only the total of the new values.
Oh cool. I guess I could use the "submit" button as you are using the "add" button - right?
I will try that now.
Thank you so much!
The Submit button should work in exactly the same way. Just make sure that if you are also using that to jump to a new slide that the triggers are in the right order. The "jump to next slide" trigger should be the last one in the list. If it comes before the variables are adjusted / added, the variables will not be changed as the slide will lose focus before the triggers can be executed.
aha! You're exactly right. I have changed the order because it does jump to another slide.
And it works perfectly! Thanks!
Hi Ned! Thank you so much for your help. I have posted the final file (with your programming on the last slide) here: https://community.articulate.com/discussions/building-better-courses/how-to-subtract-from-variable-on-deselect-help#reply-603762
Hi Victoria,
I love the Assessment and was only too pleased to be able to help out. :)
Thanks so much! I didn't write the assessment. My client has it on paper, and wanted to add it to her eLearning course.
So glad there are people like you in this community!
Hi Victoria,
You may not have written the actual assessment itself, but you did a great job of translating what was supplied to you on paper into a well laid out and engaging component of your course, so you should be happy with that. :)
You are too sweet! Actually, after everyone helped me and it was working perfectly, I did a great big happy dance and went out for dinner and wine!! ha ha
This discussion is closed. You can start a new discussion or contact Articulate Support.