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

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

  1. Create a survey with multiple Question Pages.
  2. 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:
  1. Add as RunScript, on click of 'Go to previous page' and 'Next page' buttons.
  2. 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

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