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

Work tab title showing '&' as '&'

SA-41701

Summary



A developer has added the customer name property to the work tab header. When the customer name includes '&' characters , it shows as '&' instead.


Error Messages



Not applicable


Steps to Reproduce

  1. Update UserWorkForm html fragment like this :

<script>

pega.u.d.setLabel('<pega:reference name="pyWorkPage.CustomerName"/>');

</script>


Root Cause



An issue in the custom application code or rules.

Resolution



Perform the following local-change:

Replace

<script>
pega.u.d.setLabel('<pega:reference name="pyWorkPage.CustomerName"/>');
</script>

with

<script>
var tabTile = '<pega:reference name="pyWorkPage.CustomerName"/>';
var span = document.createElement("span");
span.innerHTML = tabTile
pega.u.d.setLabel(span.innerText);
</script>


Suggest Edit

Published August 26, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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
Contact us