Hi Powerapp Gurus
Need some assistance with date....
I have 2 fields from a sharepoint list;
When did this accident occur?
When was this accident discovered?
I am wanting to put a formula where the accident discovered cannot be before the date entered in accident occur.
Thanks in advance
Rae
Solved! Go to Solution.
Hi @RubesandBoogs ,
Put on the OnChange of Accident Discovered date picker (change to your control names) - this also allows for a blank occur date.
If(
AccidentDiscoveredControl.SelectedDate < AccidentOccurredControl.SelectedDate ||
Value(AccidentOccurredControl.SelectedDate)=0,
Notify(Cannot be before occurrence date, Error);
Reset(YourAccidentDiscoveredControl)
)
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.
Hi @RubesandBoogs ,
Put on the OnChange of Accident Discovered date picker (change to your control names) - this also allows for a blank occur date.
If(
AccidentDiscoveredControl.SelectedDate < AccidentOccurredControl.SelectedDate ||
Value(AccidentOccurredControl.SelectedDate)=0,
Notify(Cannot be before occurrence date, Error);
Reset(YourAccidentDiscoveredControl)
)
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.
Assuming you are using AfterDatePicker and BeforeDatePicker, on your submit or Patch button put:
If(BeforeDatePicker.SelectedDate>AfterDatePicker.SelectedDate, Notify ("Check the date entered, Before Date, cannot be greater than After Date"), SubmitForm (YourFormName))
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Yes, thank you
That was not the one you accepted - please consider correcting this for the benefit of others viewing in the future.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
274 | |
245 | |
82 | |
37 | |
34 |
User | Count |
---|---|
359 | |
245 | |
126 | |
73 | |
44 |