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 / how to check if the sl...
Power Apps
Unanswered

how to check if the slot is still available before we submit in powerapp

(0) ShareShare
ReportReport
Posted on by 95

Dear All

 

I am working on a visitor request project, where we will be showing the dates available for visit. 

Date are a dropdown value

 

The issue i am facing is, when the app loads the filter checks and shows only available dates but say i open the app now and save it after 2 hours, there is no validation during submit and even for dates where the slot is full, entry is being made

 

My microsoft list name is VisitorRequest and Preferred_Date is the dropdown value 

 

When i click on submit button, if I have 10 entries where preferred_date is say 12/May then I must get a notification to choose a different date

 

 

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @aparnaa ,

     

    You can simply check the selected date before submitting, use an If statement:

    If(IsBlank(LookUp(VisitorRequest, Preferred_Date = DatePicker.SelectedDate)), SubmitForm(YourForm), Notify("Selected Date is invalid currently, please select another one", NotificationType.Error))

     

    Best regards,

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard