Question
LTM
IN
Last activity: 15 May 2023 11:52 EDT
Customize property name from Validation Error message
Hi All,
Is that possible to customize the property name from the validation error message and how?
I have configured a property with localised name in UI and whereas I wish to show that localised name instead of property name while throwing error on the screen. How that can be achievable?
Note: Field value rule name(Localised rule) doesnot match with property name
Please someone help on this.
Thanks,
Nirmala J
Hi @NirmalaJ2240, if you have already created a field value for the property you can try using the function: getLocalizedText where you pass 3 params: string, property, "tools".
Exmple: @(Pega-RULES:Utilities).getLocalizedText("YourFieldValueName", "pyNote", tools). {Replace pyNote with your property}