Managing the back and the next button of the browser
Hi,
My Pega solution proposes a screen flow that is interrupted by the user as soon as he presses the back / next button from his browser or from the keyboard. As a result, data become stale and the message "This action is not allowed as it is outside the current transaction." is getting displayed.
I can't prevent my users to use the functionnality of their web browser. However, is there a way to "replace" the back/next feature by a refresh, which would prevent the flow from an unexpected behavior?
Regards
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived 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.
Comments
Keep up to date on this post and subscribe to comments
You can google for disabling back n forward button for browser, a JavaScript code which u can include in harness rule.
- reply
Hi,
To disable back button, Use this code
history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); });
- reply