Forum Discussion
JacquesMonica
2 years agoCommunity Member
State Changes using variable values
I'm looking for a way to trigger a state change from disabled to normal, using a variables value? I want the user to visit 10 slides before a button becomes available to branch to a new section.
M...
JudyNollet
2 years agoSuper Hero
It's hard to troubleshoot something like this without seeing the .story file, but I'll give it a try.
Here's a typical cause for that sort of problem: The trigger to change the state is set to run when the variable changes. But the variable changes on another slide. That means the trigger will never "see" the variable change, so it'll never run.
- If that's the case, what you need instead is a trigger that runs when something happens on the slide (e.g., the timeline starts), and with a condition that checks the variable's value.
This post might be helpful. It's about controlling the Next button. However, the same basic steps apply for enabling another button.