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

New tab opens on click of link but focus is not at the top

SA-66241

Summary



On clicking a link, a new section opens, however, the cursor is not set to the top of the screen. The pxHiddenreadonly, or hidden input controls do not bring the focus to the top.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a section with layout groups.
  2. Configure a link to open other section in another tab.
  3. Run the case.
  4. Click the link. The vertical scrollbar does not scroll to the top of the screen. 


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change: 
  1. Create a non-auto generated section and include the below code in it.

    <input type="text" id="check"></input>
    <style>
    #check{
    width:0px;
    height:0px;
    border:0;
    }
    </style>

    <script>
    document.getElementById("check").focus();
    </script>

     
  2. Embed this section above the main section.

Published December 2, 2018 - Updated October 8, 2020

Was this useful?

100% 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