Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unexpected Dialog script behavior

SA-20348

Summary



A dialog script appears when proceeded through the screens using Next button in a screen flow. This script is not updated correctly when navigated to previous screen using Back button. The last screen script persists on all previous screens from where Back was clicked.

Error Messages



Not Applicable

Steps to Reproduce



1. Create a screen flow that presents a different dialog for each screen.
2. Advance the flow.
3. Navigate back in the flow, and observe the dialog.

Root Cause



A defect in Pegasystems’ code or rules:
Events fire in non-screen flow, which force a refresh of dialog when flows move. There are no such events fired in screen flows.

Resolution



Perform the following local-change:
Create a custom version of the section rule CPMRefreshDialog that contains the HTML given below.  
<script>
    var sThreadName = pega.u.d.getThreadName();
    EventMGMT_RefreshDialog({
        Thread: sThreadName
    });
</script>

Include this section in screen flow. This refreshes the dialog when moved forward or backward in the flow.

Include CAEventMgmtInclude HTML Fragment if EventMGMT_RefreshDialog is not defined.

Suggest Edit

Published March 3, 2016 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us