Hi PowerApps Community,
I want a message and a button to display when a user select a date that is between 2 dates. My current code is this:
If(DatePickerStart.SelectedDate >=Date(2020,9,14) && DatePickerStart.SelectedDate <=Date(2020,12,11), Notify("This is a period of high season. You need to aks for approval to complete your request",NotificationType.Warning,2000);UpdateContext({vRequest:true}));
The UpdateContext is for my hidden button to show. The code works fine if I choose a date between the dates. However, if I choose a date that is not bewteen the dates, the Warning message pop up even though it doesn't have to (the button doesn't show).
Can anyone help me?