while click on submit button, calling the integration call. If any error is occured then we should display the error message on the top of page. I have displayed the message on top of the page. But focus is in bottom of the page. Is there any way to scroll to top of the page or set the focus to top of the page automatically.
Discussion posts and replies are publicly visible
Ideally, you should show the message near to where the user clicked. Which in your case is the bottom of the screen or wherever the button was placed. This improves the UX and gives the user an immediate sense about what happened.