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

Modal closes though error occurs on submit

SA-97066

Summary

Modal closes though error occurs on submit.


Error Messages

Not Applicable


Steps to Reproduce

  1. Launch a local action which loads the modal with form
  2. Configure submit, close, refresh and other section actions on the Submit button 


Root Cause



A defect or configuration issue in the operating environment. The Close action closes the modal though validation errors occur. 

Resolution



Perform the following local-change: 
  1. Add the below script to the UserWorkForm:

    <script>
    function validateFields(){
      if(bClientValidation &&(typeof(validation_validate) == "function")&& !validation_validate()){
        pega.control.actionSequencer.clearQueue();
      }
    }
    </script>

     
  2. Add the ValidateFields function to the Run Script action at the top and configure the Close action at the bottom

 


 



 

 

Published December 19, 2019 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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