Question

Customizing pega oob error messages

We have a requirement, where all the pega oob error messages (for textbox/text areas/date controls) are to be modified to "Invalid data

For example: I want to display "Invalid data" instead of 'Value cannot be blank', when there is a blank value in any text box or text area.

Please let me know how can this be achieved.

Thanks,

***Updated by moderator: Lochan to update Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 28, 2016 - 8:54pm

Hello,

Are you referring to the error text that gets displayed for Required  field client side validation?

In that case, you may save-as the pyMessageLabel . Value cannot be blank rule and update the Translate to with the desired message.

December 29, 2016 - 11:22am
Response to Shashidhar_Palle

Thank you Shashi, it is working fine for the text boxes and test areas.But for the date control, it is displaying the entered date + Invalid input.

For ex: If i enter 13/15/2016(mm/dd/yyyy), then it is showing as "13/15/2016 Invalid input".It needs to be displayed only 'Invalid Input'.

December 29, 2016 - 3:23am

Hi,

Try saving the pyMessageLabel . Value cannot be blank rule in your ruleset and translate with the desired message you want.

Thanks.

Pega
December 29, 2016 - 9:11am

Considering your requirement 

>> all the pega oob error messages (for textbox/text areas/date controls) are to be modified to "Invalid data

Since there are around 400 field values are present in the applicaiton, i think the best way is to run localization wizard :) even though you dont want to translate your applicaiton.

Go the fourth step of the wizard and download the content. In the folder you will see an xml named TextToTranslate.

Here you can find out the complete list of all the field values associated with error messages.

You can then open those field values one by one and update them. Just an idea. Others can comment.