Question
IE stating "Are you sure you want to leave this page?"
Hello,
The below issue I am encountering in the CPMHC portal, I am working in Pega 6.3 SP1.
I go to Reference material option in the CPMHC and chose say any field value and then close cross mark on the window I get message window from IE stating "Are you sure you want to leave this page?"
The above message window does not appear when I don't chose any field value in the window.
Any way I can get rid of the IE window to leave the page. Does it require JavaScript change or is it configurable in CPMHC or Pega.
Thanks,
Kapil
***Updated by moderator: Lochan to add Categories***
***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Hi Kapil,
I reproduced the issue on my cpmhc system.
You can add the following script in UserWorkForm to get rid of it.
<script>
if(parent && parent.pega && parent.pega.u && parent.pega.u.d){
parent.pega.u.d.gDirtyOverride = false;
}
pega.u.d.gDirtyOverride = false;
</script>
Please give a try and let me know the result.
Thanks,
Susan