Skip to main content
May 8, 2023
Question

Set focus on the top of the page when getting the error

  • May 8, 2023
  • 2 replies
  • 0 views

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.

    2 replies

    stefanhelzle0001
    Brainy
    May 8, 2023

    No. Appian does not support any active focus or scroll management. But you could just hide all UI and just show that message. Then the user clicks and is returned to the UI.

    harshitb6843
    May 8, 2023

    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.