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 / Allowing input form ba...
Power Apps
Answered

Allowing input form based on the date

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

I need to be able to only allow users to enter data on a form, that contains the months and have a dropdown with numbers, based on the current date and not allowing for then to change the data for the past months.

 

Example: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

                 2.    4.    5.    2.     1.    0.    1.    4.   3.    4.     5.     6

 

And assuming the the app reads the information from the system and today is the 1st of September all of the months before September would be locked and would not allow for any inputs to be made. September trough December would be open and would allow for changes to be made.

 

Any ideias on how this is achievable?

Thanks,

M

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MIgware1 ,

     

    You could set the dropdown's items property to:

    Filter(Sequence(12,1,1),Value>=Month(Today()))

     

    Best Regards,

    Bof

  • MigWare Profile Picture
    4 on at

    .

  • MIgware1 Profile Picture
    10 on at

    Hi @v-bofeng-msft  ,

     

    I´ve tried that but that would only allow the dropdowns to insert the numbers of 9 to 12, as we are in September.

     

    The objective if for the dropdows that are past the current month to be greyed out and not allow the user to change the information that is already there

     

    BR,

    M

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MigWare ,

     

    The objective if for the dropdows that are past the current month to be greyed out and not allow the user to change the information that is already there.

     

    That is not available. But you could set the dropdown's Onchange property to :

    If(Self.Selected.Value < Month(Today(), Reset(Self);Notify("Error Message"))
    
    

     

    Best Regards,

    Bof

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard