Support Article
Dirty form pop up rendering when using desktopDefaultView
SA-6048
Summary
When attempting to complete a call transfer (using desktopDefaultView('Work','Interaction Manager') to display a portal), a message "Are your sure you want to navigate from the page" on screen is unintentionally displayed.
Error Messages
Not Applicable.
Steps to Reproduce
1. Create a button to reference a custom section.
1) Use desktopDefaultView('Work','Interaction Manager') in the code of the custom section.
Root Cause
The root cause of this problem is that the interaction form is being closed when values are present. Due to this, a dirty pop up is shown, as an expected behavior.
Resolution
This issue is resolved by adding the following script in the userworkform:-
<script>
if (parent && parent.pega && parent.pega.u && parent.pega.u.d) {
parent.pega.u.d.gDirtyOverride = false;
}
pega.u.d.gDirtyOverride = false;
</script>
if (parent && parent.pega && parent.pega.u && parent.pega.u.d) {
parent.pega.u.d.gDirtyOverride = false;
}
pega.u.d.gDirtyOverride = false;
</script>
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.