2 events with one button

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Chameleon
 
 
Posts: 148
Joined: Sat Sep 29, 2018 7:29 pm

2 events with one button

Post 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,
User avatar
Pablo
 
Posts: 23449
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: 2 events with one button

Post by Pablo »

You can add multiple events to a button.
Chameleon
 
 
Posts: 148
Joined: Sat Sep 29, 2018 7:29 pm

Re: 2 events with one button

Post 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 :?
User avatar
Pablo
 
Posts: 23449
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: 2 events with one button

Post by Pablo »

You cannot show and hide the same object with the same click.
Please use 'Toggle' instead.
Chameleon
 
 
Posts: 148
Joined: Sat Sep 29, 2018 7:29 pm

Re: 2 events with one button

Post by Chameleon »

Cheers Pablo thats exactly what I was looking for. Works a treat :D
Post Reply