Question
Cognizant Technology Solutions Pvt Ltd
IN
Last activity: 9 Jan 2026 6:00 EST
Validation not triggering when the Save button is clicked from the pyDirtyCheck pop-up
We need to validate user inputs for invalid characters. Currently, validation triggers only when the Submit button is clicked.
In certain cases, if a user enters value with invalid characters and selects ‘Close’ directly, pyDirtyCheckConfirm OOTB section that displays a modal dialog pop-up appears with the message “You are about to discard your unsaved changes.” with Cancel, Discard and Save button.
If user clicks Save button, values containing invalid characters are still saved.
Please note that implementing Property-Level Edit-Validate is not feasible, as this is an existing application with over five years of data. Identifying and remediating all impacted records would require significant effort and necessitate resending all case data via BIX to MI
If we introduce a check on value change, the pyDirtyCheck pop-up does not appear, and the user loses the entered information upon clicking Close.
Is there any other way to enforce validation in this scenario without loosing pyDirtyCheck pop up?