Close popover
Harsh Patel (HarshPat)
New Jersey Courts
Harsh Patel
New Jersey Courts
HarshPat Member since 2018 5 posts
New Jersey Courts
Posted: March 12, 2020
Last activity: March 16, 2020

Page Scroll up when a button is clicked.

We have a requirement where users fill out a form and click a button at the end. On click of the button we are checking for field validation, and if there is any error we are displaying a message at the top of the page. However, the button that is clicked is located at the bottom pf the page and the page won't scroll up so that the user can see the error message displayed on top. How can we achieve this? I tried running a script window.scrollTop(0,0) but nothing happens. Please reply with any solution that you may have. Thank you. 

***Edited by Moderator: Pallavi to update platform capability tags***

Pega Platform 8.2.2 Enterprise Application Development Dev/Designer Studio User Experience Government System Architect
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.