I am fairly new to Power Apps and really struggling to come to terms with the complicated workarounds it requires for basic functionality.
My app has 2 DatePicker controls for selecting a range of dates (dp_StartDate and dp_EndDate). I need to ensure that dp_EndDate is always on or after the date selected in dp_StartDate.
If either date picker changes and causes the EndDate to be a date prior to StartDate, then dp_EndDate needs to be changed to match the date of dp_StartDate.
Since we cannot set control values programmatically, I am very confused how to handle this.
Methods I've tried:
- Using Patch() within each DatePicker's OnChange property to update a context variable
- Using an If() check in dp_EndDate's DefaultDate property
I have run into several issues, errors, and bad behavior depending on which method and how I've tried to implement it.
Instead of trying to troubleshoot the dozens of ways I've tried to do this, could someone please provide an example of this functionality? How do I update the value of one datepicker based on the value of another?
Thank you!