How to keep the page scroll position even after refreshing pages (both Classic UI and Portal)?

Aki18
Tera Contributor

When refreshing page (both Classic UI and Portal), the page scroll position is lost and moved to the top position of the page, which is very inconvenient...
Is there any way to keep the scroll position even after refreshing Classic UI and Portal pages?

For example, in portal page, is there any method to define that function somewhere? (Maybe in the Client controller of the widget?)


Best Regards,
Aki

1 ACCEPTED SOLUTION

Markus Kraus
Kilo Sage

 

I thought this is quite an interesting go because especially list count = 100 or with forms that have a huge activity log you tend to scroll a lot.

Also when editing huge script includes you wouldn't need to scroll a lot (note: this is currently not implemented, but will probably be in a future version).

 

So what you have to do is fork the following repository and then open up the target instance's studio and select "Import From Source Control" (where you specify the newly forked repository):

https://github.com/kr4uzi/ServiceNow-Scroll-Restore

View solution in original post

15 REPLIES 15

The event if probably firing, make sure to enable the debugging in chrome:

MarkusKraus_0-1693753011828.png