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 few days in Da...
Power Apps
Answered

disable few days in DatePicker control based on condition

(0) ShareShare
ReportReport
Posted on by 4

Is it possible to disable few dates in the calendar control? for example for some booking slots already full for the particular date it should be disabled and the user can't select that? if not then what is the best way to achieve this use case?

Categories:
I have the same question (0)
  • Verified answer
    Krishna_R Profile Picture
    525 on at

    Hi @jayeshpr 

     

    I believe, only way is to go for error handling. 

    Krishna_R_0-1625808325797.png

     

    you can use this formula inside onchange & onselect properties of date control

    If(Self.SelectedDate in BookedSlots.Value,Notify("Slot is not available",NotificationType.Error))

    Here bookedslots will be your data source.

     

    you can also play with fill property like this 

    If(Self.SelectedDate in BookedSlots.Value,Gray,RGBA(255, 255, 255, 1))

    Krishna_R_1-1625808467655.png

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard