I have an app, where I book slots. I managed to create a gallery where I have
- Sort + filter ´bookings´ showing active rows and belonging to the user accessing the App
- The booking has ´startDate´and ´endDate´
- I successfully added a formulation that if the booking is within 24hrs then it won´t allow
If(
DateDiff(Gallery.Selected.BookingDateTime, Now(), Hours) >= 24,
Patch(
YourDataSource,
LookUp(YourDataSource, ID = Gallery.Selected.ID),
{Status: "Inactive"}
),
Notify("Cannot deactivate booking less than 24 hours in advance.", NotificationType.Error)
I am trying to add a new "visible" variable that will show one of 2 buttons to manage the booking.
E.g. I have a Booking for the tenth of October: 10.10.2024
- 1. Until midnight before the booking day, meaning until 09.10.2024 23:59, I will show button "A"
- 2. after midnight, i.e. on the day of validity so from 10.10.2024 00:00, I will show button "B"
thank you for the help