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
- Add a button which is configured to call 'Save' with the 'Close After Save' option enabled.
- Add the button to a section with Required fields.
- Enter data in some fields.
- 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:
- Configure a Run Script call and invoke a custom function (disableClientValidation) before the Save action.
- Define this function in the UserWorkForm.
function disableClientValidation() {
bClientValidation = false;
}
Published August 19, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.