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

Toggle button does not work in reports



A button is configured to toggle between a Pie chart and a Graph chart. On clicking the Toggle button, the switch between the charts does not occur.

Error Messages

Not Applicable

Steps to Reproduce

Use the out-of-the-box cpmToggleIconsPaired control to toggle between charts.

Root Cause

This behavior is as per Pega product design.


An enhancement request, FDBK-61559, is created for consideration by Pega Product Management.

Alternatively, as a local-change, add the below code in the cpmToggleIconsPaired control,

For a single toggle button:

function func(){
        }, 100);  

<a href="#" id ="mytoggle" onClick="Toggle('<p:r n="$this-name"/>','Chart');func();"><img style="height:16px;width:16px" title="<pega:lookup property =".pyCaption" value="Click to chart view"/>" src="<p:r n="$save(ChartViewIcon)"/>" >

For multiple toggle buttons:

var mytog=0;
var newID='mytoggle'+mytog;
Suggest Edit

Published December 2, 2021

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