Support Article
Incorrect client validation when closing tab in tabbed repeat
Summary
Incorrect client validation occurs when closing a tab in a tabbed repeating layout.
Error Messages
Not Applicable.
Steps to Reproduce
- Fill three tabs in a tabbed repeating layout
- Delete any required field in one tab
- Change the tab and delete the tab
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.