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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable date picker ba...
Power Apps
Unanswered

Disable date picker based on a date range using sharepoint columns

(0) ShareShare
ReportReport
Posted on by 212

Do you know how I can disable dates in a datepicker control in powerapps based on a date range.

I have a SharePoint list to specify the date ranges that will be disabled. For example, Block1 record dates between StartDate and EndDate  will be disabled.

 

mthiru_0023_1-1689176325342.png

 

 

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @mthiru_0023, is the Date Picker control inside a Gallery that has the table records including the start and end date? Can you share screenshots?

     

     

  • mthiru_0023 Profile Picture
    212 on at

    @AhmedSalih,  I have a vertical gallery on the left of the screen.  I am still working on the UI but the datepicker control is inside an edit form on the right side of the vertical gallery.

     

    mthiru_0023_0-1689181885654.png

     

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @mthiru_0023, one more question, are looking to disable the dates inside the date picker, or disable the date picker control all together?

     

  • mthiru_0023 Profile Picture
    212 on at

    Hi @AhmedSalih, I am looking for a simple solution to disable dates from selection or color code it black/grey so that the user is aware this date is not available for selection based on the date range in SharePoint.  I am happy to hear any suggestion that can utilized here. Basically, there will be date ranges every year (which change) and reflected on a SharePoint list that are not available for selection. Also, previous date and weekend dates are not available for selection. 

     

    I am also reading this video from @Reza may help me.

    (220) Build CALENDAR Control in POWER APPS in Minutes | Connect to SharePoint List - YouTube

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @mthiru_0023, actually @RezaDorrani approach would be the only way you can do that as the Date picker doesn't support your requirement. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard