Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0uNoqkH8h5SdHpwdYFuzgK
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 663

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
    146,658 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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started