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

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

  1. Create a TextEncrypted property type property.
  2. 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

Was this useful?

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