Preventing multiple clicks in a radio button

Sep 07, 2022

Hello All,

I am building a self-assessment style Storyline 360 project. There are 4 statements and for each statement the learner gets to select a radio button ( agree/disagree) and a score gets allocated. By clicking multiple times, the score can get more than 100! How can I prevent this false clicking and scoring?

In this demo project I have a variable "selfscore". How can I set the maximum value to be 100?

Thank you for your suggestions.

Mahua.

2 Replies
Ginger Swart

Hi Mahua,

I'd recommend modifying your triggers that adjusts the variable to happen when the learner selects the Ok button (your file has that button as Button 1, it's a good practice to rename those so it's easier to keep track of them when creating your triggers) instead of when they select the radio buttons. This will allow them to select the buttons multiple times but those clicks won't add up. You'll need a condition on the trigger to add the value if the state of the appropriate radio button is selected. 

screenshot showing an example of the trigger panel with a conditional statement

Trigger order is really important here. You'll want to make sure that those triggers are listed before the triggers to jump to different slides so Storyline has a chance to adjust the variable as needed. 

Hope that helps! Please let us know if you have any questions.