Support Article
Question page loads from the bottom instead of from the top
SA-61532
Summary
When using Pega Survey Smart Shape, the screen contains mandatory questions (Multiple Choice) and a Comment box at the end of each screen. On completing all the questions on one page and when navigating to the next page, the page loads from the bottom (that is, the location of the focus on the first screen). The page must load from the top.
Error Messages
Not Applicable
Steps to Reproduce
- Create a survey with multiple Question Pages.
- Refer the survey in the Survey Smart Shape and check the screen flow option.
Root Cause
The focus did not shift to the top of the section in the survey. Hence, the next page loaded from the bottom of the page.
Resolution
Perform the following local-change:
- Add as RunScript, on click of 'Go to previous page' and 'Next page' buttons.
- Add the below function to scroll the DIV in the UserWorkForm.
<script>
function test(){
$('#l2')[0].scrollTop = 0;
}
</script>
Published July 23, 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.