web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / disable button based o...
Power Apps
Answered

disable button based on timeslot availability

(0) ShareShare
ReportReport
Posted on by 69

Hi All,

 

I'm having an app built on a Sharepoint Calendar Application, in order to book meeting slots.

 

So far I'm having a good gallery listing out the events within the FromD (from date) to the ToD (To date), but I strugle in having the filtering expanding to have also the hours and minutes taken in consideration. (Picture Attached)

 

objects at the moment

 

FromD: Datepicker

ToD: Date Picker

FromH:dropdownlist

FromM:dropdownlist

ToH:dropdownlist

ToM:dropdownlist

 

NZA534 Gallery Items:

 

Sort(Filter(NZA534;
 DateDiff(DateAdd(FromD.SelectedDate;-Weekday(Now()-7));EventDate)>0;
 DateDiff(DateAdd(FromD.SelectedDate;7-Weekday(Now();7));EventDate)<=0
 And 
 DateDiff(DateAdd(FromD.SelectedDate;-Weekday(Now()-0));EndDate)>0;
 DateDiff(DateAdd(FromD.SelectedDate;0-Weekday(Now();0));EndDate)>=0
 );EventDate;Ascending)

 

 

 

What i would like to achieve based on the picture is the following:

 

1) since if we look at the selected time, there is already an entry, i would like the gallery to write out "Timeslot not available" and not list the times

2) since if we look at the selected time, there is already an entry, i would like to disable the visibility of the "Book" button

 

Every suggestion is well appreciated,

shpcal.jpg
Categories:
  • OliverV Profile Picture
    69 on at

    @mdevaney  any idea ?

  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @OliverV 

    No.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard