I would like to command show / hide of a DIV, with a Custom Switch. therefore I must be able to change the value of a 0/1 variable
I used Dynamic Event Click Mouse to set the Toggler variable = 1
Now when I open the page the DIV area is correctly hidden and if I activate the switch, it display show
But if I disable the switch, I would like to go return to hiding, but it doesn’t work for me
Where am I wrong?
Thanks
Are you trying to show a container when a switch component is checked (active)?
Yes with this configuration the container when the page is opened is hidden and by clicking on the switch it becomes visible.
But the problem is that if you click on the switch again by deactivating it, the container remains visible
I am not sure what are you doing on your page exatly, but the easiest way is to add dynamic attributes > show to the container:
And select to show it, when the switch is checked:
1 Like
But it is very simple
I persisted in wanting to configure the switch, and instead I just had to configure the display of the container
Thanks Teodor