Forum Discussion
RyanGovreau-da9
3 years agoCommunity Member
Issue with button sets and trigger actions
The file contains a slide of five radio button set questions, identifying what is and is not a project. As seen in the review link, in preview mode, when making a selection for just one of the quest...
JudyNollet
Super Hero
Hi, Ryan,
The T/F variables have a default value of False. So if the user clicks Reveal Answer before they actually answer some (or even any) of the questions, the answers are revealed based on the default value.
I suggest you disable the Reveal Answers button until all of the sets have been answered. Here's a quick summary of how to do that:
- Set the initial state of the Reveal Answers button to Disabled.
- Add T/F variables to track whether each set has been answered. You could use the same names as the variables you have, but with "_done" added at the end of the name.
- Add a trigger to both buttons in a set that change the corresponding tracking variable to True. (True means that set is done/answered.)
- Add a T/F variable just to have a variable for the "when" to change the Reveal Answers button to Normal. For example, call it "answering."
- Add a trigger to both buttons in all the sets that toggles the "answering" variable. (The actual value doesn't matter. What matters is that the variable changes.)
- Add a trigger that changes the Reveal Answers button to Normal when the "answering" variable changes -- with the conditions that all of the corresponding "done" variables are True.
You can see how this works in the attached file.
RyanGovreau-da9
3 years agoCommunity Member
Judy, thank you so much! Not only for explaining the steps in what you did but actually doing the work as well! It is super helpful to be able to see what you did as I read each bullet point. I owe you a cup of coffee!
- JudyNollet3 years agoSuper Hero
I'm glad it all made sense.
As the great Walt Hamilton says, "pifwyc (pay it forward when you can)."