Question

1
Replies
848
Views
Imane BOUTCHICHA (ImaneB61)
Capgemini

Capgemini
FR
ImaneB61 Member since 2018 1 post
Capgemini
Posted: February 22, 2019
Last activity: April 11, 2019
Posted: 22 Feb 2019 16:28 EST
Last activity: 11 Apr 2019 16:06 EDT
Closed

Dirty popup doesn't show

Hello,

We have a requirement saying:

When a user uploads a document but doesn't send it, a dirty popup displays when you quit the page.

However, the dirty popup isn't displaying.

To overcome this I tried to:

- Create a section within the section displaying the documents needed to be uploaded

- On the section, override the js function that sets the override dirty popup variable as the following:

<script>
pega.u.d.explorerFormIsDirty = function() {
if(console){console.log("explorerform dirty custom called");}
return true;
}
</script>

Issue:

When the section loads for the first time, the dirty pop shows when you quit the page, but if you try to upload a document (launches a local action), the dirty popup doesn't appear anymore.

Any ideas on how to solve this?

Thank you in advance.

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.