Forum Discussion
TracyNaso-01983
3 years agoCommunity Member
Using Variables to Control Button States
I want to be able to display a button state as a feedback after "Submit" button is clicked. There are 4 possible button states based on if a.) Choice is Correct or Wrong; and b.) If Learner Clicked ...
MariaCS
3 years agoStaff
Hi, Tracy.
Thank you for reaching out and sharing your .story file!
If I understand correctly, each button will only be one of two states (Yes/NotSelectedButCorrect or No/Distractor). Since when designing, you already know which ones will be correct/incorrect, you can create the conditions based on the states they're in when the user submits:
Here is an example of:
- Choice one is correct, but not selected.
- Choice two is incorrect, but not selected.
And here's an example of:
- Choice one is correct and selected.
- Choice two is incorrect and selected.
Let me know if this works!