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

Expand/Collapse Message Always Displays English

SA-16988

Summary



Tool tip for the Click to expand /collapse displays message in both English and localized language. But the user wants the message to be displayed only in localized language for that Operator.


Error Messages



NA


Steps to Reproduce



1.Add collapsible dynamic layout  in section.
2.Modify the pyActionPrompt.Click to Expand/Collapse field value with localized value.
3.Run the case and hover on the collapse/Expand icon.


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. 
In pzpega_ui_doc_expandcollapse.js file instead of picking values from field values , title is taking reference from
 gStrClickToExpandText and gStrClickToCollapseText global script variables and appending it to existing title(which at first time is taking localized value)

Resolution



Perform the following local-change:

Add the following script in userworkform and modify the field-values.

<script> 
pega.u.d.attachOnload(function() { 
gStrClickToExpandText = "<your tnslation here>"; 
gStrClickToCollapseText = "<your tnslation here>"; 
}, false); 
</script>

 
Suggest Edit

Published January 31, 2016 - 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