Support Article
Modal dialog submitted despite error messages
SA-98367
Summary
Post upgrade to Pega Platform 8.2.1, modal dialog is submitted even when the Required field error message is present.
Error Messages
Not Applicable
Steps to Reproduce
- Upgrade Pega Platform 7.1.9 to Pega Platform 8.2.1.
- Configure a button with action as 'Launch Action'.
- Configure the Launch Action as a modal dialog.
Root Cause
An issue in the custom application code or rules.
The pyModalTemplate rule of Pega Platform 7.1.9 is saved in the application ruleset. This rule is modified in Pega Platform 8.2.1.
The modal dialog button control of the ModalButton action, defaults to the doModalAction which submits the modal dialog even when error messgaes are present. In Pega Platform 8.2.1, the button control has changed to pzModalButton, which does not submit the modal dialog when error messages are present.
Resolution
Perform the following local-change:
- Open the pyModalTemplate.
- Change the Submit button control to pzModalButton.
Published January 11, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.