we have a requirement when we click on submit, if any error message we are setting at the top of the section . If there is an error message the window should automatically scroll up when we click on submit. Please reply immediately if you have any solution.
What version of Pega are you using ? Can you check whether the section that displays the error has aria-role='alert' set on the div ? This helps in the accessibility context to place the focus on the error messages. Not sure whether it'll help in the regular context, but worth a try.