Forum Discussion
Count variables and storing values of the buttons clicked
Hi all, I'm trying to create a Johari Window in Storyline 360. I'm facing an issue with the count variable. I created a variable to add 1 if the button is clicked, but when I click the same button again, it should subtract 1. I'm not able to get this done. It keeps adding and when I add a trigger to subtract, it keeps subtracting when I click the button.
Also, how do I store the button (text written in it) which I clicked on slide 1 to slide 2?
Any help on this, please?
2 Replies
- JudyNolletSuper Hero
Hi, Sharath,
If you want one button to sometimes add and sometimes subtract, you need to apply conditions to the triggers. The easiest in this case to use a condition based on the value a T/F variable, because those are easy to toggle. You can see this in action in the attached file.
If you want to "store" the text from a button that was clicked on slide 1 so you can use that info on slide 2, add a trigger to that button that puts the text into a text variable when it is clicked.
- If there are multiple buttons, and you only want the last one clicked, put the text into the same variable.
- If you want to track multiple buttons, put the text for each button into its own variable.
- To show the value of any variable, type the variable name within percentage symbols. For example, this would show the value of a variable called Count:
%Count%
- SocratesAnas261Community Member
Very helpful indeed.
I was trying to create a series of questions and I needed a toggle function to check/uncheck user choices. Thanks Judy.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago