Question
Evoke Technologies
IN
Last activity: 16 Nov 2023 1:00 EST
How to show a part of error message in bold text?
I have a requirement to display a part of error message to be displayed as bold text. I've observed that HarnessErrorList from @baseclass is getting called internally which is using getLocalizedTextForString function to retrive the message. In my scenario, I'm setting the message to a property in a post - data transform by calling pxAddMessageToProperty activity.
I first tried using field value with <b></b> tags in it and later used a message rule since I observed that pega is looking for a rule with the name of message I've kept. Both of the approaches didn't format the output to bold. I've also tried using the syntax {Rule-HTML-Paragraph: ParagraphRule} and it didn't get saved in the first place.
One more observation is that property references are not working in this scenario. If there's any way to solve this formatting issue, please let me know.