Page 1 of 1
2 events with one button
Posted: Mon Mar 16, 2020 5:27 pm
by Chameleon
Hi Is it possible to have 2 events on 1 button? I am trying to setup a button so that the first click shows a hidden object and another click hides the object, bit like an on / off switch. I can get either to work but not both.
thanks,
Re: 2 events with one button
Posted: Mon Mar 16, 2020 6:17 pm
by Pablo
You can add multiple events to a button.
Re: 2 events with one button
Posted: Mon Mar 16, 2020 6:38 pm
by Chameleon
Hi Pablo,
I have added the 2 events to a themeable button, the first event is set to show a hidden object i.e. login and the 2nd event is set to hide the same object. when viewed in preview only the show event works, nothing happens when I click the button to hide it

Re: 2 events with one button
Posted: Mon Mar 16, 2020 7:11 pm
by Pablo
You cannot show and hide the same object with the same click.
Please use 'Toggle' instead.
Re: 2 events with one button
Posted: Mon Mar 16, 2020 8:16 pm
by Chameleon
Cheers Pablo thats exactly what I was looking for. Works a treat
