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

HTML-code &quot instead of quotes in Messages

SA-41305

Summary



While the property with the following symbols like "/'/& showed in Message (via Page-Set-Messages) it shows HTML-code of (like -- " ) instead of the symbol itself.


Error Messages



Not Applicable


Steps to Reproduce



1. Populate a property (A) with a string that have " in it.



2. Create a pyMessageLabel Field Value (B) with: Text {1} Text .



3. Transfer property to Message in activity via Page-Set-Messages : "B/t"+A .



Message is showed with HTML-Code in it .


Root Cause



Formatting for the parameter passed to field value TestMessage is not defined and hence the value is being formatted by the control defined on pyLabel property causing the value to be encoded.

Resolution



Use formatter for the parameter that is being passed in to the field Value:

1. Create a Custom control with the following code :
<%String result = tools.getActiveValue();%><%= result%>



2. Refer the control in the Field value like below :







Published November 2, 2017 - Updated October 8, 2020

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?

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