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

Unable to save and close a case without validation

SA-61606

Summary



Configuring a button to perform a Save action, saves the values and the button continues to display on the form.



Enabling the 'Close After Save' option, automatically closes the case after save is performed. This causes the form to perform validation when it is not required.




Error Messages



Not Applicable


Steps to Reproduce

  1. Add a button which is configured to call 'Save' with the 'Close After Save' option enabled.
  2. Add the button to a section with Required fields.
  3. Enter data in some fields.
  4. Click the button. The case does not close due to validation failure.


Root Cause



This behavior is as per Pega product design.


Resolution



Perform the following local-change:
  1. Configure a Run Script call and invoke a custom function (disableClientValidation) before the Save action.
  2. Define this function in the UserWorkForm.

    function disableClientValidation() { 
    bClientValidation = false; 
    }

Published August 19, 2019 - Updated October 8, 2020

Was this useful?

25% 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