Forum Discussion
Set state/condition of an image to disabled
Thanks for your help!
i want to change the Button to disabled Not when I Click thr buttton.
i want to change it when I passed an other slide/scene
and there I can‘t find a trigger to set a Button on an other slide…
It's true that you can't change the state of a button on another slide.
It was my understanding that you wanted the button disabled so the user couldn't revisit the associated practice. To accomplish that, the easiest solution is to change the button to Disabled when it is clicked. That will happen so quickly that the user probably won't notice it before the program jumped to the practice. But when they return to that home page after completing the practice, the button would be Disabled.
However, you're now saying the button should change "when I passed an other slide/scene." Do you mean you want to ensure the user passed some sort of test or completed an interaction?
If that's the case, you could still change the home-page button to Disabled when it is clicked. Then also program the "practice" so the user can't return to the home page until that slide/scene is completed.
Otherwise, you would need to use a variable to track whether the user completed the practice slide/scene. For that, I suggest a T/F variable, with a default value of False. Change the variable to True when the practice is successfully completed. Then use a trigger that changes the button to Disabled when the home-page timeline starts with a condition that the variable = True.
If you need more help, here's the User Guide info on variables and trigger conditions:
- MichaelUtz2 months agoCommunity Member
Thank you for your greatful answer!
in This case i also prefer „variable“
t/f is a good idea
thanks a lot!!