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 / Problem with formula t...
Power Apps
Answered

Problem with formula to open form on a set date and during the days between the opening and closing date.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a problem with a formula. To explain a little, what I need to do is that, on the 4th of each month, the entry to my form is opened. and that this stays that way until the 9th of each month, which is where it closes. 

 

For example, on the 4th the form is opened for people to enter and they can fill out their form to send. This also happens on day 5, day 6, day 7, day 8 and day 9. In other words, they have 6 days to fill out the form and send it. And then, on the 9th at 11:59 p.m., the form can no longer be entered, so they will have to wait again for the 4th of the next month to be able to enter it.

 

My problem is with the formula. I can't find a way for this to be done automatically, so every month I have to be aware of changing the date.

 

This is the formula which contains the button in its "On select" action:

 

 

If(Date(Year(Today());Month(Today());4)>Date(Year(Today());Month(Today());9);Notify("No puede ingresar al formulario ya que pasó la fecha límite.";NotificationType.Error);Navigate(Form_obj;Fade))

 

but this occupies the logic that if 4 is not greater than 9, it takes me to the form. I have tried applying only a "Today" or a "Now", but it does not work since it will always be open in the same way.

 

Is there any way so that the form is only opened from the 4th to the 9th and closes on the 9th at 23:59, so that it remains closed until the 4th of the following month, and so on?

I find myself in a circle right now.

 

I hope can help me.

 

Regards

 

 

 

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think the display mode of the field(s) will do the trick. Together with the dateformat function, you will get it working, Search the Microsoft documentation and you will get it working as a charm.

  • Verified answer
    zmorek Profile Picture
    3,272 on at

    I've replied to your question here as well

     

    (1) Solved: Re: Is it possible to schedule dates automatically... - Power Platform Community (microsoft.com)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Anonymous @zmorek 

    Thanks you so much. The formula has remained as:

    If(
     And(
     Today() > Date(
     Year(Today());
     Month(Today());
     21
     );
     Today() < Date(
     Year(Today());
     Month(Today());
     23
     )
     );
     Navigate(
     Form_Inf_Tras;
     Fade
     );
     Notify(
     "Ha pasado la fecha límite.";
     NotificationType.Error
     )
    )

    This thanks to @zmorek .

     

    Regards

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm glad you've found a solution. Good luck!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard