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

Radio button functionality does not work in repeating grid

SA-8911

Summary



User creates a repeating grid with a radio button to select an option from the group. The radio button selected does not pass the the value to clipboard.

Steps to Reproduce

  1. Get data from the report definition.
  2. Display data using the repeating grid including the radio button (only a single radio button with true and false).
  3. Add a post value action for the radio button.
  4. After submit, check the selected radio button value in the clipboard.

Root Cause



When a radio button is used in a repeating grid, the code explicitly blocks the onclick event generation.

Resolution



Perform the following local change:
Use a check box control instead of a radio button in a repeating grid and customize the code as shown below to work around the current requirement.

<script>
function test(event)
{
var tableID = pega.util.Dom.getElementsById("bodyTbl_right");
         var arr = pega.util.Dom.getElementsByClassName("checkbox","input",tableID[0]);
   for(var j=0;j<arr.length;j++)
     {
        arr[j].style.display = "none";
      }
 
 
}
 
function test1(event)
{
setTimeout("sample()",0);
}
 
function sample()
{
 
var tableID = pega.util.Dom.getElementsById("bodyTbl_right");
         var arr = pega.util.Dom.getElementsByClassName("checkbox","input",tableID[0]);
   for(var j=0;j<arr.length;j++)
     {
        arr[j].style.display = "block";
      }
}
 
</script>

 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

100% 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