Page 1 of 1

Events onclick

Posted: Tue Nov 08, 2022 6:15 am
by Joel
Hi,

I have WWB17. When I use Events show with effect onclick and hide onclick, the image appears and disappears spontaneously when it was working perfectly in previous versions.

Is it how it's set up now or am I doing something wrong?

Re: Events onclick

Posted: Tue Nov 08, 2022 7:04 am
by Pablo
To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: Events onclick

Posted: Tue Nov 08, 2022 8:57 am
by Joel
I don't have any active websites or servers at the moment so I will do it once this one is published.

Re: Events onclick

Posted: Tue Nov 08, 2022 9:41 am
by BaconFries
You don't need to have a active site or a host. All that is required is a copy of the your project the .wbs file. Simply upload this to the likes of Mediafire and provide the url they generate. Please read the url Pablo gave before doing so.

Re: Events onclick

Posted: Tue Nov 08, 2022 12:29 pm
by Joel
I just created a new project to upload to Mediafire and tested it in my local browser. It works fine.

Does it mean my website project is corrupt because I have the issue on every page, even a blank one?

Re: Events onclick

Posted: Tue Nov 08, 2022 12:36 pm
by Joel
Anyway, here is the project file https://www.mediafire.com/file/hxayiome ... e.wbs/file

Maybe you will be able to suggest why it's not working properly on my current website project.

Re: Events onclick

Posted: Tue Nov 08, 2022 12:43 pm
by Pablo
You have added two events for the same click event: show and hide.
That makes no sense.

If you want to toggle the visibility then use 'toggle' instead.

Also, if you use 'show with effects' then you will also need to use 'hide with effects' to hide it again (and vise versa).

Re: Events onclick

Posted: Tue Nov 08, 2022 12:52 pm
by crispy68
You demo is working correct for me in WB18. When I click the icon the text is hidden. When clicked again it appears.

Re: Events onclick

Posted: Tue Nov 08, 2022 12:54 pm
by Joel
Sorry for the alarm, I just fixed it :D