Announcements
Hi all,
We have built a time tracking app that is linked to our Case records. From a Case record, we have created/placed a custom button on the Case ribbon that when pressed brings up a form where the user can enter time they have spent on the case.
We would like to have this time tracking form "pop up" whenever a user exits a record. i.e. whenever a user opens a specific case, they may or may not make edits to that case, regardless of this, when they exit from the case, we would like the time tracker form to pop up as a gentle reminder to enter time if you need to, otherwise they can just click on the "exit" button on the time tracker form.
I think the dilemma here might be there are a lot of ways a user can "exit" a record, i.e. back arrow, click on other record from recent list, simple close the tab, etc.
Hoping that others have tried something similar and might have some clever ideas on how to accomplish this.
Ultimately, we just want to remind folks that before they leave a Case record, they think about whether they should enter time related to the case.
Appreciate your feedback.
Clayce
Clayce,
"Dialogs' have been on the MS chopping block for years, so i would shy away from a popup that asks the User for input. What you may consider is a field in the header or top of the form that is "Time Spent", if the User enters 0 or any other number and they save, do what you need to do, add that value to some sort of time tracker, if it is blank, cancel the save with a popup that reminds them to enter a time spent value. Yes, they can close the record/browser without a save, but then they are more inconvenienced than simply entering a 0. There are other options, but this seems like the one that gets you where you need to be.
Hi Clayce,
As far as I know, there is no on exit(close) event on the form. Here is all events listed in docs: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/events
I can think of the closest approach to your needs is that add an onload event to change a field on your form and an onsave event to trigger your pop up window. However, if user click Discard changes button, the on save event would not be triggered.
André Arnaud de Cal...
294,127
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator