How to restrict user not to select the button twice or how to make Storyline to count the variable only 1 time

Aug 29, 2021

Dear Articulate Community,

I have interaction in the course. Users can choose between 3 options (there is no true or false answer). I have 3 variables (value). If a user clicks the first option Storyline adds value +2 to variable A. Substract -1 to variable B and add 0 to variable C.

The thing is, if the user clicks on the button twice or more times Storyline adds +4 or +6 instead of +2, and subtract -2 or -3 instead of -1.

My question is how to restrict the user to choose the option only 1 time or how to restrict the storyline to change variables more than 1 time.

Thank you.
Your help is very much appreciated.

5 Replies
Maria Costa-Stienstra

Hi, Maryna, and welcome to E-Learning Heroes! ✨

I'm looking forward to the suggestions our talented community members might be able to offer for what you're looking to accomplish, but here's what I'd do if the design allows:

  • Make the three options a button set (select all the options, right-click, and choose Add to button set)
  • Add another button to submit the interaction (we'll call it Calculate for the example below). 
  • Depending on which option is selected, the triggers that calculate the results will be attached to the Calculate button. Since they're either selected or unselected, the calculation will only be done once.

Windows 10 (1) 2021-08-30 at 9.31.29 AM

This is what it will look like:

Screen Recording 2021-08-30 at 09.34.19 AM

Maryna Skorohod

Dear Maria Costa-Stienstra,

 

Thank you for your reply.

Your example is exactly what I have already done.

The thing is when you pressed "add 10 to the number" twice - Storyline added 10 and then 10 again so Storyline added 20 instead of 10.

My question is How to make Storilyne to add 10 only one time?

Is there any option to restrict Storyline to count the number twice?

 

Thank you in advance!

Walt Hamilton

Maria's suggestion is good, but maybe didn't go far enough.  What is needed is that the other buttons may be pressed as often as the learner likes, but the calculate button can only be pressed once. Once the calculate button has done the addition or subtraction, it needs another trigger to turn itself to Hidden, or move to the next slide. That allows the learner to change their mind and choose any of the operations, but once they choose calculate, they are locked into the selected option.