Announcements
Hi all,
I have a same text for two gallery (upcoming and pass).
Upcoming tab: there is no appointment it will showing text "No upcoming reservations". That's OK.
Previous tab: there are 3 appointments but it's still showing text "No upcoming reservations"
How can I fix it?
Thanks.
Hi @kinghnvn ,
What does the Upcoming and Previous buttons do?
@PTBBSolutions
Please find below code.
UPCOMING button text: "UPCOMING (" & CountRows(gallUpcoming.AllItems) & ")"
Upcoming button OnSelect: UpdateContext({upSelected:!upSelected});UpdateContext({prevSelected:!prevSelected})
Previous buttons text: "PREVIOUS (" & CountRows(gallPast.AllItems) &")"
Previous buttons OnSelect: UpdateContext({prevSelected:!prevSelected});UpdateContext({upSelected:!upSelected});
MyAppts screen Text Visible
If(CountRows(gallUpcoming.AllItems) >=1, false, true)
Can you try something like this:
If( upSelected, CountRows(gallUpcoming.AllItems) >=1, If( prevSelected, CountRows(gallPast.AllItems) >=1, false ) )
for the Visible property.
@PT
I tried the code for the Visible property.
The text could not display at UPCOMING but it's still showing at the PREVIOUS screen
just edit code as below. it works fine. thanks.
If(upSelected,CountRows(gallPast.AllItems) >=1,If(prevSelected,CountRows(gallUpcoming.AllItems) >=1,false))
but it's wrong if I booked an appointment.
I've made a mistake.
Please try below code:
If( upSelected, CountRows(gallUpcoming.AllItems) < 1, If( prevSelected, CountRows(gallPast.AllItems) < 1, false ) )
Please accept this as a solution if it works as you expect.
it's working now. thank you so much.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 514
WarrenBelz 419 Most Valuable Professional
Valantis 295