The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add to dashboard button need to disable from report page service-now in Istanbul

rohit331
Tera Expert

Hi

How I can "Add to dashboard" button disable from report page service-now.

find_real_file.png

1 ACCEPTED SOLUTION

shloke04
Giga Sage

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';


  };



}



find_real_file.png



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


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

8 REPLIES 8

Abhishek Raj3
Mega Guru

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.



Editing sys_report_template



Thanks & Regards,


Abhishek.



Note:


Please mark this post as helpful,like or correct based on the impacts.


shloke04
Giga Sage

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';


  };



}



find_real_file.png



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


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Thanks for you response but it is not working in my Instance


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


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke