Page visible - conditional

Hi :slight_smile:
I have a section called my bookings:
shows if the user has made more (or equal to) one reservation:

If there are no bookings (i.e. zero) it shows ‘‘no bookings’’ section:

Test user has zero bookings and yet ‘‘my bookings’’ section displays :confused:

Have you unchecked “visible on page load” in layout tab of my_bookings group?

P.S. As for me the first condition (current user is logged in) is redundant. I suppose you are doing a search for Bookings where *user = current user"? So if he’s not logged in - search will return 0.

Yes unchecked ‘‘unchecked “visible on page load” in layout tab of my_bookings group’’

But is did add ‘‘user = current user’’ :slight_smile:

Now it works - thank you :slight_smile:

This topic was automatically closed after 70 days. New replies are no longer allowed.