Support Article

Unable to localize PropertyRequired message for validations

SA-26067

Summary



Using an out-of-the-box required validation in a validate rule, ignores the message defined here. "This field may not be blank" appears at runtime, despite hard coding as given below.


Error Messages



Not Applicable

Steps to Reproduce



Try to localize "required" validation.

Root Cause



This is working by design. This message is not intended to be customized according to https://pdn.pega.com/sites/default/files/help_v718/procomhelpmain.htm#rule-/rule-obj-/rule-obj-validate/validate.htm

Resolution



Perform the following local-change:
Override the source message rule, which supplies the canned "This field may not be blank."

Clicking Save As in a relevant PropertyRequired message rule will result in the error given below.

Follow the steps given below to resolve this error:
  1. Perform a private checkout of pyRefToFocusKey.
  2. Remove the pxUseSourceValidate validate rule from the property and save it.
  3. Save As PropertyRequired to localize it to the requirements.
  4. Remove the private checkout to pyRefToFocusKey.

Published July 26, 2016 - Updated July 28, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.