The Now Platform® Washington DC release is live. Watch now!
‎03-24-2017 11:15 PM
Hi
How I can "Add to dashboard" button disable from report page service-now.
Solved! Go to Solution.
‎03-27-2017 03:12 AM
Hi,
You can write an UI Script to hide "Add to Dashboard" button. Below is the script which you can use:
Script:
window.addEventListener('load', reportVisitorStyle());
function reportVisitorStyle()
{
window.onload = function()
{
document.getElementById('add_to_homepage').style.display = 'none';
};
}
I have tested this on my Personal instance and it's working for me.
Kindly test the same from your end too.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
‎03-27-2017 01:11 AM
Hi Rohit,
I doubt we can remove the "Add to Dashboard" from the report page because we dont have acess to the report ui page.
kindly go through the links you would be able to get your answer.
Thanks & Regards,
Abhishek.
Note:
Please mark this post as helpful,like or correct based on the impacts.
‎03-27-2017 03:12 AM
Hi,
You can write an UI Script to hide "Add to Dashboard" button. Below is the script which you can use:
Script:
window.addEventListener('load', reportVisitorStyle());
function reportVisitorStyle()
{
window.onload = function()
{
document.getElementById('add_to_homepage').style.display = 'none';
};
}
I have tested this on my Personal instance and it's working for me.
Kindly test the same from your end too.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
‎03-28-2017 07:42 AM
Thanks for you response but it is not working in my Instance
‎03-28-2017 07:51 AM
Hi,
Can you try clearing the Instance cache by using cache.do in the url as below:
https://instance.service-now.com/cache.do
Replace "instance" with your Instance Name.
Also try clearing Browser Cache Memory and check the above Code provided because even for me Sometimes what code we write in UI Script required clearance of Cache memory to have the Result seen on the client side.
Please check the above code and functionality after clearing instance and Browser cache memory.
Also Can you share your Code and on which Version of Service Now you are working on? I tried this on my personal instance which is on latest version of Service Now i.e. Istanbul and it worked for me.
Regards,
Shloke