Forum Discussion
Tracking the order of buttons being pushed
It gets more complicated with the Submit button that would appear after all steps/buttons are clicked and disabled. Create a number variable that will track the button clicks. For instance:
1. Set the state of a button to disabled when the user clicks a button (4 triggers)
2. Add value 1 to "clickedSteps" variable when the user clicks a button (4 triggers).
3. Create another number variable that you can use to validate.
Example: add value 1 to "correctStep" variable when the user clicks "heat the pan" button (being the first correct step) if "clickedSteps" variable is equal to 1. Then, add value 1 to "correctStep" when the user clicks "add oil to the pan" button (being the second correct step) if "clickedSteps" variable is equal to 2, etc.
I attached another video showing this option in action.