radio button question
Jun 09, 2013
I have four radio buttons as part of a self assessment. The user may press one or more buttons as applicable:
Because they may be required to press more than one button I have not created a button set. I have however set a modes of travel variable and set it to score a value for each radio button that is selected:
So far so good. My problem is if I have an indecisive user and they then deselect the button the score remains unchanged and if they are really indecisive and select it again the score will once more be added, thereby producing a false score.
My question is can another trigger be added to take the added value away if the button is deselected and can i prevent the score being added more than once. A simple answer would be to set another trigger as above with minus 5 if deselected but that option is not available in the drop down list.
Any suggestions or advice as always much appreciated
Paul
12 Replies
From a UI point of view if you want more than one to be selected you should use checkboxes. Users get used to common conventions using radio buttons you break those conventions
I also find it easier to add these type of triggers onto the next/submit button based on the selected state this way you don't have to worry if the select or unselect an option.
Phil, Thanks for that. Good point re: the checkboxes.
I have managed to stop it counting multiple clicks by adding a true/false variable. Just haven't been able to figure out yet how to reset it to 0 if the user deselects the checkbox.
I will try and get my head around incorporating the triggers into the next/submit button.
if you add the triggers to the next button then they only get counted when the user is happy with their selections
I have tried adding the triggers to the next button but as soon as i complete the trigger it reverts to a seperate object in the trigger pane.
At the risk of asking what is probably a stupid question how do i add the triggers so that they only activate when I click the next button?
create a trigger
Adjust variable, on Condition Checkbox == selected when user clicks the next button
that should work
Phil, I hate to be a pain but it is still not working:
For each of the click boxes I have added a trigger:
When I preview the scene and press the next button it does not alter the ModeOfTravelScore variable (Begin button 1 is actually the next button)
You probably need to move to jump to next slide trigger to the bottom
Phil, we got there in the end. It seems obvious now but yes i did need to move the jump to next slide trigger to the buttom to allow the other triggers to activate.
One problem i did find though was it was adding the all scores regardless of whether the boxes had been ticked so i added an extra true/false variable to activate once the checkbox had been clicked and that sorted it out.
Thanks once again for your help. Thanks to yourself and the rest of the community i am getting my head around variables but it is a slow process
Glad you got it working
Phil -- just wanted to tell you that I also learned something very valuable from this thread! I was attempting to adjust a variable (the score) based on whether or not a series of radio buttons had been selected, and I wanted learners to be able to change their minds as they progressed through the slides. By putting the trigger that increments the score on the final slide let me evaluate every choice across 4 slides all at once. Very helpful!
Thanks James, I had to reread this to see what I said :-)
Thanks for sharing James, always glad to see when an older thread is still helping out.
This discussion is closed. You can start a new discussion or contact Articulate Support.