Page 1 of 1

The event (show layer) does not fire when the button is pressed

Posted: Mon Nov 30, 2020 3:01 pm
by contextbi
Hello!
I created layer 35 in the program - http://joxi.ru/5mdJQvqi8d51yA. In its original state, it is hidden.
Layer settings are set: http://joxi.ru/brRWYQZcOG1nLm
I set an event on the button so that when the button is pressed, layer 35 appears http://joxi.ru/YmExN9MTMVWDYr

But on the published page, the event doesn't fire. The layer does not appear.
Please tell me what I'm doing wrong

Re: The event (show layer) does not fire when the button is pressed

Posted: Mon Nov 30, 2020 3:15 pm
by Pablo
To be able to help you, I need a project file.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134

Re: The event (show layer) does not fire when the button is pressed

Posted: Mon Nov 30, 2020 3:28 pm
by contextbi

Re: The event (show layer) does not fire when the button is pressed

Posted: Mon Nov 30, 2020 4:10 pm
by Pablo
There are two things you will need to change.
- for layer35, uncheck 'Include visibility' (see the help for more details)
- use showwitheffect, instead of 'show'
'show' toggles the 'visibility'
'showwitheffects' toggles the 'display' property.
Floating layers uses 'display:none' to hide, because otherwise it would still take up space in the layout.

If you do not want an effect then set the length of showwitheffects to 0

Also, the next time you share your project, can you please remove all elements which are not relevant to your question? That will save me a lot of time.

Re: The event (show layer) does not fire when the button is pressed

Posted: Mon Nov 30, 2020 4:48 pm
by contextbi
Thank you for your reply!
Okay, next time I'll remove the non-relevant items. Thank you for your patience