Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Any way to trigger a popup window when a user exits a Case record?

(0) ShareShare
ReportReport
Posted on by 15

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

  • jim.corriveau@chesterton.com Profile Picture
    75 on at
    RE: Any way to trigger a popup window when a user exits a Case record?

    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.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Any way to trigger a popup window when a user exits a Case record?

    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.

    Snipaste_5F00_2022_2D00_02_2D00_09_5F00_10_2D00_06_2D00_03.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,127 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans