Announcements
Hello,
I would like to disable the submit button every week day from 10am to 2pm. Is that possible?
Hi @ca-azevedo ,
On the DisplayMode of the button
If( Weekday(Now()) > 1 && Weekday(Now()) < 7 && Hour(Now()) > 9 && Hour(Now()) < 14, DisplayMode.Disabled, DisplayMode.Edit )
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
Hi @WarrenBelz Thanks for your reply, but didn't work. 😔
Hi again @WarrenBelz I removed the WeekDay(Now()) > 1 && Weekday(Now()) < 7 && and now works!
Thanks! 🙂
@ca-azevedo ,
I can assure you that solution is correct for the question you posted - you need a small d in Weekday. If you leave out the top line, it will work on weekends as well (you asked for weekdays)
Thank you @WarrenBelz !
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 345 Most Valuable Professional
11manish 207 Super User 2026 Season 2
Mohsin Ali 177