Support Article
HTML-code " 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.