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

Clicking label of checkbox enables it on a different tab

SA-50394

Summary



In a repeating Tab layout, clicking the label of a check box enables it on a different tab.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Create a repeating Tab layout with a minimum of two tabs on the screen
  2. Include a check box in the layout
  3. Click the label of the check box in the second tab. This enables the check box on the first tab


Root Cause



When there are multiple tabbed repeating layout configured with same check boxes this issue exists. This is treated as an invalid use case as per HTML standards. The Document Object Model (DOM) always evaluates unique IDs from the top level.


Resolution



Perform the following local-change: Add the below snippet in UserWorkForm:

<script>
$("span.checkbox label.cb_standard").click(function(event){
$(event.target).siblings("input.checkbox").trigger("click");
event.preventDefault();
event.stopPropagation();

});
</script>




Suggest Edit

Published March 8, 2018 - 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