
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 12:50 AM
Hi folks
I want to have a Button (UI Action) which scrolls down to the related list.
This isn't working....any ideas :-D?
This button "Scroll down" should scroll down to the related lists
To this related list "Taskana Incident Tasks"
Solved! Go to Solution.
- Labels:
-
User Experience and Design

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2021 09:20 AM
It is possible but only under certain circumstances and without the use (and support) of ServiceNow APIs. First the UI-Action has to be in [global] scope and second you have to uncheck the [isolate_script] flag. Then you can use the following function for the onClick event:
function scrollToEventReg() {
var scrollTo = $j('.section_header_content_no_scroll').height();
window.$j('.section_header_content_no_scroll').animate({ scrollTop: scrollTo }, 200);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 12:56 AM
The g_tabs2Sections will set focus on a form section, to divert to a related list you need to use g_tabs2List eg:
g_tabs2List.setActive(0);
check out this link for more details: https://www.servicenowguru.com/scripting/client-scripts-scripting/changing-active-tab-selection-serv...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 01:19 AM
The right form section gets activated (great) , but it doesn't scroll down to that related list (you still have to manually scroll down)
How can you accomplish the scroll down?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2020 03:13 AM
Hello Simon,
I know it's been a while you posted, but I wonder if you managed to fix your UI Action ? Because I want to achieve the exact same thing.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2020 01:12 PM
Hello Simon,
I know it's been a while you posted, but I wonder if you managed to fix your UI Action ? Because I want to achieve the exact same thing.
Thank you.