create a number variable that adds +1 when user makes a selection , then set the others to disabled state when variable =2. Alternatively put a transparent shape over all selections that is set to hidden and trigger to change state to normal when variable =2. Transparent means has a full colour set to 100% transparent not no fill. Hope that helps
So I got it working both ways with this, thanks. But now I have a reset answers button which jumps back to the same slide with initial state and once that's been clicked the buttons wont disable get blocked again. It only seems to work once. Would there be any obvious reason for that?
If you are resetting answers you'd need to reset the variable back to 0 to start again. So on the reset answers button try this trigger:
Adjust variable (number variable) value 0 when user clicks reset button.
Not sure which way you've gone if you are using disabled states or transparent shape but these should be reset if you have the reset to initial state set as the revisit option in the slide properties.
If that doesn't work you can share your .story file and someone will take a look for you.
Just a tip - states are slide specific but variables can be global for the project so that's why in some cases the variables should be reset if you need to use them again.
6 Replies
Hi Bruce
create a number variable that adds +1 when user makes a selection , then set the others to disabled state when variable =2. Alternatively put a transparent shape over all selections that is set to hidden and trigger to change state to normal when variable =2. Transparent means has a full colour set to 100% transparent not no fill. Hope that helps
Thanks for that, I'll give those techniques a try.
So I got it working both ways with this, thanks. But now I have a reset answers button which jumps back to the same slide with initial state and once that's been clicked the buttons wont disable get blocked again. It only seems to work once. Would there be any obvious reason for that?
If you are resetting answers you'd need to reset the variable back to 0 to start again. So on the reset answers button try this trigger:
Not sure which way you've gone if you are using disabled states or transparent shape but these should be reset if you have the reset to initial state set as the revisit option in the slide properties.
If that doesn't work you can share your .story file and someone will take a look for you.
Ah, yes, that was it. I assumed that was happening anyway when the slide was being reset. Working perfectly now. Thanks again!
Hey Bruce glad that worked for you.
Just a tip - states are slide specific but variables can be global for the project so that's why in some cases the variables should be reset if you need to use them again.
Good luck with your project.
This discussion is closed. You can start a new discussion or contact Articulate Support.