Page 1 of 1

Events Not Working

Posted: Wed May 01, 2019 5:48 am
by rogerr
Hello,
I have a page with a layout grid containing two columns. The left column has two text boxes stacked vertically,
the top is visible, bottom is hidden Pressing the "View More" button should make bottom text box (Text11) visible, hide the "View More" button and show a "Close" button. Pressing "Close" should hide the Text11, show "View More" and hide "Close" button.

But pressing "View More" just hides this button and does nothing else. "Close" button never shows nor the Text11.
The example site is https://wailea.net/ - the menu option "Events Screen" shows the Events box setup.

This worked for awhile then just stopped working.

2nd issue, the right column has a text link "Click for Availability" which does not display the linked page even though the bottom of the browser shows the correct link.

The 3rd menu option, "Working Example" shows how it should work.

There are other screens on the site temporarily hidden to simplify the display for testing.

Any help will be greatly appreciated.

Thanks,
Roger

Re: Events Not Working

Posted: Wed May 01, 2019 6:45 am
by Pablo
To be able to help you I need a (stripped) copy of the project file so I can see all your settings.

Related FAQ:
viewtopic.php?f=10&t=82134

Re: Events Not Working

Posted: Wed May 01, 2019 7:19 am
by rogerr
Hello Pablo,

The file is zipped as https://wailea.net/WaileaPoint.zip

Thanks,

Roger

Re: Events Not Working

Posted: Wed May 01, 2019 7:51 am
by Pablo
There are a few issues:
- The layout grid itself has an onclick event, this may override the button click. Please remove the event from the Layout grid.

- The page has breakpoints, this may affect visibility of objects. Make sure 'include visibility' is not checked for all objects which are controlled by events.
Related FAQ:
"When using events, the visibility is affected by breakpoints"
viewtopic.php?f=10&t=63817

- For floating elements (like text inside a layout grid), it is better to use "showwitheffects/hidewitheffects" instead of 'show/hide'.
If you do not want an effect then set it to 'fade' with length 1.

Re: Events Not Working

Posted: Wed May 01, 2019 6:30 pm
by rogerr
Hello Pablo,

Thank you much for the advice. I made the changes and it works correctly now. I had spent a couple of hours before trying to get this to work.

It appears that "include visibility" is set by default as I did not use this setting. Also, I am curious as to why the text link did not work before, it does now.

Again, I appreciated your help on this.

Roger

Re: Events Not Working

Posted: Wed May 01, 2019 8:19 pm
by Pablo
It appears that "include visibility" is set by default as I did not use this setting.
Correct, because that is the normal behavior.
Only when you want control the visibility via events/javascript this needs to be off.
Also, I am curious as to why the text link did not work before, it does now.
Probably because the layout grid onclick event was added, this overrides all 'click' behavior.

Re: Events Not Working

Posted: Wed May 01, 2019 9:30 pm
by rogerr
Thanks much!