Forum Discussion
Set state/condition of an image to disabled
Hy
Do you have an idea how I can simply set a symbol to another state?
After visiting another page, I want to change the icon from white to green and deactivate it at the same time.
So that a chapter is not practiced again. (The home page becomes clearer)
Is this only possible with the use of an rvariable that I set to 1, for example, or is there a simpler method?
thanks
mike
- JudyNolletSuper Hero
You could add a trigger to the button that changes it to Disabled when that button is clicked. Be sure to put that trigger before the trigger that jumps to the practice slide/scene.
- MichaelUtzCommunity Member
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…
- JudyNolletSuper Hero
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:
- MichaelUtzCommunity Member
With the variable T/F works very well.
Now I have another problem:
I would like to open a closing page after "all" buttons have changed - i.e. all relevant pages have been visited and the variables have been properly set to T - because no button is active anymore. Unfortunately, the slide does not start, so it does not automatically jump on my terms. Do you have any idea why?
proof 1: i checked each variable on True
proof2: i set a trigger with a new variable True as result of each variables
i doesnt work...