Question

1
Replies
126
Views
Prateek Singh (PrateekSinghRajput)
Capgemini

Capgemini
IN
PrateekSinghRajput Member since 2016 1 post
Capgemini
Posted: August 28, 2020
Last activity: September 7, 2020
Posted: 28 Aug 2020 9:02 EDT
Last activity: 7 Sep 2020 0:48 EDT

Display warning message when user clicks outside the perform harness

I have a requirement where I need to display a pop-up message on screen whenever user click outside the perform harness. For Eg: I am working on an assignment of my case type then suddenly I click on any menu item in left side navigation panel( Dashboard, Reports etc) then immediately i should be prompted with a message to save my work before leaving. I already tried "onbeforeunload" function in js and plugged the respective js in perform harness but it only fires the pop-up on [Cancel] [Refresh] events but not on switching away from perform harness. Any suggestion would be appreciated.

 

***Edited by Moderator Marissa to update General to Product***

Pega Platform 8.3.4 User Experience Consumer Services Senior System Architect