Custom filter section validation on report is not working
SummaryUser need to validate date fields on a custom filter section of report, but edit validate is not firing on client side and it is firing on submit.
Error MessagesNot Applicable
Steps to Reproduce1.Create a custom edit validate rule
2.Observe that when the case is run, the edit validate is fired on submit and not on focus out.
Root CauseThis is an expected behavior.
The issue is when the custom edit validate is used, it gets fired server side and not the client side.
The edit validates defined in the pega_validators.js are fired client side.
ResolutionPerform the following local-change steps, if custom edit validate rule has to be fired on client side:
- Create and test the edit validate rule.
- Associate an edit validate rule with a property.
- Associate with the property a control rule that includes the ClientValidation control rule.
- Enable client-side validation, by a check box on the HTML tab of the Harness form. For best results use JSP tags and the SmartFrames format for the harness.
- Test the process.
Check the following article for reference:
Published June 8, 2017 - Updated July 20, 2017