Want to add scroll to top button on bottom of ServicePortal Homepage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 03:21 AM
Hi All.
Can anyone let me know how to add one scroll to top button on bottom of the ServicePortal Homepage.
I want that when an user clicks on the top arrow button it will navigate to top of the page.
Thanks.
SNOW@Das

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 04:25 AM
There is an out-of-box widget named 'SC Scroll to top'. Although it's designed for use on mobile devices only (meaning it won't display on a larger browser screen) you can clone it and modify it as follows to make it work everywhere. After the clone, simply adjust it as follows...
1) Body HTML Template
<div>
<button name="gotoTop" ng-click="goTop()" class="btn fa fa-arrow-up fa-lg padder-lg button-to-top pull-right"></button>
</div>
2) CSS
.button-to-top {
position: fixed;
bottom: 0;
right: 0;
margin-right: 15px;
margin-bottom: 15px;
border-radius: 5px !important;
opacity: 0.7 !important;
padding: 12px !important;
border: 1px solid !important;
width: 47px;
height: 45px;
background-color: #ddd;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 10:19 AM
Hi Mark,
I tried cloning the widget and paste the same script as mentioned in your answer.
But I don't able to see the button on the homepage.
Can you please let me know where do I miss out or any changes needs to be done?
And also let me know if I need to define the CSS Class anywhere?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 11:17 AM
The button is designed to only show up when you begin to scroll upwards. It's working in my system without issue on my homepage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 04:19 AM
Hi Mark,
Does it works for the Change Form tooo?