Auto scroll Form to bottom after clicking a ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2025 09:07 AM
Hi , i had a requirement, where it is asked to create ui action, when clicked on it it should open another record form but it should be scrolled down when opened, is it even possible to auto scroll the form using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2025 09:27 AM - edited ‎08-06-2025 09:28 AM
Hi @Sai kumar123 ,
Add this code within your UI Action,
action.setRedirectURL(current);
setTimeout(function() {
window.$j(document).scrollTop(document.body.scrollHeight);
}, 500);
Additionally, you can check the below link:
Try this once and let me know. If you find this helpful, please accept this as a solution and hit the helpful button..
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hi kaushal, i had implemented the code and also researched but nothing worked there and as we all know DOM Manipulations are not advisable , i had came up with an alternative in my mind lets hope it works, anyway thank you for suggesting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I don't think this is possible without DOM manipulation and DOM is not recommended practice.
Also I believe it's not a good user experience to take user directly down after auto scrolling.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader