Welcome to my video series where I take questions from the community and show how I approach and solve them. I am very honored to be able to share my knowledge and experience with the Power Apps community!

I decided to start this video series, where I will take you through the thinking process of how I look at a question and what a possible solution could be. Of course, there are many ways to achieve the same goal in PowerApps, so my solutions may not be the only ones or the best ones. But I hope they can inspire you and give you some ideas on how to tackle your own challenges. So, without further ado, let’s get started!

Question of the Day: How to Enable or Disable a Button Based on Date Selections in Power Apps

If you are creating a form that involves date selection, you might want to control the behavior of a button based on the dates that the user chooses. For instance, you might want to disable the button if the user selects two dates that are equal or less, such as January 1, 2023 and January 2, 2023, or February 15, 2023 and February 14, 2023.

On the other hand, you might want to enable the button if the user selects two dates that are in greater than two dates, such as March 1, 2023 and March 4, 2023.

This can be useful for scenarios where you want to prevent the user from submitting invalid or illogical date ranges, such as booking a hotel room or a flight ticket. In this blog post, I will show you how to write the code or logic that can achieve this functionality using two Date Pickers and a button in your Power Apps.

Leave a Reply

Your email address will not be published. Required fields are marked *