UI Script hides info message on Reports but not on Dashboards

Soundarya D V
Tera Contributor

Hi all,

I’m trying to hide the information message on the Dashboard overview 

My UI Script works on Reports → View/Run, but it does not work on Self-Service → Dashboards Overview, even though the selector is the same.


UI Script:-

addLoadEvent(function() {

    var banner = document.querySelector('.information-banner-dashboard-overview');

    if (banner) {

        banner.style.display = 'none';

    }

});

Is there any way to make this possible?



SoundaryaDV_0-1763631046914.png

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Soundarya D V 

did you check the HTML lD is same?

what's your actual business requirement?

what you want to hide?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I am trying to hide the info message that says "If you can't find the dashboard you're looking for, try the Platform Analytics library." on the Dashboard overview 

@Soundarya D V 

did you check the HTML element is same there?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader