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

Extra Space is preserving when visibility condition is false



User has recently upgraded PRPC application from PRPC 5.5 to Pega 7.1.7 and in few screens they observe that extra space is getting retained when visibility condition is false during section refresh on click of the button.

User has a custom control, upon click on it, the screen navigates to the previous state. This is achieved by doing refresh section and hiding few contents based on visible when condition. 

This creates an empty space when the content is not displayed (resize does not happen). When the OOTB button is used, the issue goes away. But the page set message are no more visible. The use case has an activity configured to set the page set message after clicking on Submit button, however in run-time they are not displayed on Harness. This messages is seen on clipboard though.

Error Messages

Not Applicable.

Steps to Reproduce

1. Create button on the screen, 
2. Create a activity which has page set messages configured. 
3. On click of the button, the page set messages are not thrown. They appear on the clipboard.

Root Cause

Usage of old custom portals yields this behavior. 


The following script can be used in the userworkform and is called on click of button in the custom control which solves the issue. 

function test_harnessresize(){ 
document.getElementById("HARNESS_CONTENT").style.height="1px"; ="1px"; 

The above script triggers the resize logic and removes the extra space.

Published October 1, 2015 - 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