Skip to main content

Notifications

Community site session details

Community site session details

Session Id : RmiVJV5ZRf7B3/wH6zrpqy
Power Apps - Building Power Apps
Unanswered

Restricting the user to not to select from the past date.

Like (0) ShareShare
ReportReport
Posted on 15 Nov 2022 15:50:32 by 669

Hello,in the below pic

freshyshreya_0-1668527277976.png

I want to restrict the user from selecting the dates before today(current date).

For example-A user entering the date today i.e.15/11/22 should not be allowed to select dates before today.

 

Please help!

Categories:
  • WarrenBelz Profile Picture
    147,090 Most Valuable Professional on 15 Nov 2022 at 20:42:19
    Re: Restricting the user to not to select from the past date.

    Hi @freshyshreya ,

    You cannot stop them selecting, but you can stop the input - on the OnChange of the Date Picker

    If(
     Self.SelectedDate > Today(),
     Notify("Must be today or before", Error);
     Reset(Self)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 104

#3
stampcoin Profile Picture

stampcoin 80

Overall leaderboard
Loading started