Support Article
Edit validate does not work on TextEncrypted property types
SA-64487
Summary
A TextEncrypted property named SSN contains the Social Security Number. The value is formatted with '-' using the 'SSN' Edit Validate rule provided in PegaHC:07-22-01. The Edit Validate rule, formats the input to XXX-XX-XXXX. However, the Edit Validate does not work in the TextEncrypted property type properties.
Error Messages
Social Security Number:Invalid value specified for SocialSecurityNumber. Value doesn't adhere to the Validate: SSN
Steps to Reproduce
- Create a TextEncrypted property type property.
- Add the Edit Validate rule 'SSN'.
Root Cause
An issue in the custom application code or rules.
Since the Edit Validate rules are invoked on the server side, the text entered (Social Security Number) is already encrypted when the Edit Validate rule validates the input and displays the error.
Resolution
Perform the following local-change:
Format and validate the input at the client side when Text Encrypted type property is used.
Associate the client side validation with the Edit Validate rules as mentioned in the article: https://community.pega.com/sites/default/files/help_v74/procomhelpmain.htm#rule-/rule-edit-/rule-edit-validate/related.htm
Published August 19, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.