Support Article
Extra line visible at end of screenflow
Summary
Extra line is visible at the end of the screenflow when all the upcoming assignments are hidden.

Error Messages
Not Applicable
Steps to Reproduce
- Create a screenflow.
- Add a few assignments to the screenflow.
- Add a decision shape with one connector to the End shape and another to the assignment. The connector to the End shape must have a When condition with True and the other with Else.
Root Cause
A defect in Pegasystems’ code or rules.
While generating the HTML code for assignment names and links, the condition which checked if all the future assignments were hidden was missing. Therefore, the extra line was visible at the end of the screenflow.
Resolution
Perform the following local-change:
- Customize the screenflow harness into a custom ruleset.
- In the Scripts & Styles tab of the screenflow harness, add a new JavaScript.
- Create a new JavaScipt to include the below code in the screenflow harness.
$(window).load(function() {
var elem = document.getElementById("ScreenFlowTabs");
if(!elem)
return;
var lis = elem.getElementsByTagName("LI");
for(var i=lis.length-1;i>=0;i--){
if(lis[i].getAttribute("class") && lis[i].getAttribute("class").includes("hidden")){
continue;
}
break;
}
if(!(lis[i].className.includes("ie8-last-child")))
lis[i].className += "ie8-last-child";
})
Published February 13, 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.