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

Incorrect client validation when closing tab in tabbed repeat

SA-70026

Summary



Incorrect client validation occurs when closing a tab in a tabbed repeating layout.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Fill three tabs in a tabbed repeating layout
  2. Delete any required field in one tab 
  3. Change the tab and delete the tab
  4. Click Finish Assignment


Root Cause



A defect in Pegasystems’ code or rules.


Resolution

Perform the following local-change: 

Add this script in UserWorkForm:

<script>
pega.u.d.attachOnload(function(){
  var ul = $("div[pl_prop = '.PageList1']").find("ul");
  debugger;
  ul.attr("role","tablist");
  ul.find("li[hpref]").each(function(){$(this).attr("role","tab");});
},true);  
  
function fireClickOnTabs(e){
    var target = pega.util.Event.getTarget(e);
    var ulElem = $(target).closest("ul");
      var tabGrpId = $(target).closest("div[tabgroupid]").attr("tabgroupid");
      $("div[tabgroupid = '"+tabGrpId+"']").find("li[hpref]").each(function()                    
                                                                 {
      $(this).click();
    });
}
  </script>

Note: PageList1 in the above code is the name of the pagelist bound to the repeating tab layout.


 

Published December 28, 2018 - 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