So I have to make a lunch app in PowerApps, the app is created from a Sharepoint list.
Now there are some time restrictions I have to deal with, so this is the case:
-The employees can order a sandwich before 9:45 AM the same day and;
-The rest of the day they can order for any other day of the year
So I assume I have to do the check on the OnSelect of the Submit button but I can't really figure out the exact formula to get it right.
Anyone have other ideas? Please let me know because this is a crucial part of the app. All help will be appreciated.
This is what I tried: If(DataCardValue6 < TimeValue("9:45"),SubmitForm(EditForm1),DataCardValue6.SelectedDate > Today(),SubmitForm(EditForm1),ErrorKind.Conflict)
Also how do I show the error message after?
Kind regards
Tom