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.
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.
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.
The above script triggers the resize logic and removes the extra space.
0% found this useful