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 5, 2016 - Updated August 8, 2016


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.