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 / Help to create form th...
Power Apps
Unanswered

Help to create form that disables submit button if dates are unavailable

(1) ShareShare
ReportReport
Posted on by 12

Hi Community, 
I am creating a Power apps solution for booking our company car. 

I have a Sharepoint list for storing all the bookings. 

 

I don't want the user to be able to users to double book the car, 

So I want the "On change" for the "Start time" date picker and "End time" date picker to check if the selected dates in the booking form is overlapping with the existing bookings in the sharepoint list (Star Time(date+time) to End Time(date+ time)) fx I want to allow booking on the same date if the time is not overlapping

 

If the date is already booked, I want to activate an error message and disable the submit button. 

Do any of you have an idea on how I should write the formular for the Onchange for the date pickers?

maily_0-1686038697337.png

 

Categories:

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard