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

Events on radio buttons are not triggered

SA-26474

Summary



Events configured on radio buttons are not triggered while using in repeating grid.

Error Messages



Not Applicable

Steps to Reproduce

  1. Use radio buttons in repeating grid.
  2. Configure events like refresh section and run data transform on radio button on action click.​

Root Cause



A pre-defined action is present for radio buttons in grid to clear the remaining radio buttons.

Resolution



Perform the local-change:
Configure the below script in the section containing grid.

<script>
  var radioButtons = document.getElementsByTagName('input');
for(var i=0;i<radioButtons.length;i++)
{
 
if(radioButtons[i].type=='radio')
{
radioButtons[i].addEventListener("click", function(){

  pega.u.d.reloadSection(pega.u.d.getSectionByName("SecondSection"),"TestActivityRadio","",false,true,'-1',false);
});
 
}
}
</script>

Published August 8, 2016 - 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?

Want to help us improve this content?

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