Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide the header from the Platform Analytics Dashboard within the Portal iframe

Yingbo Wang
Tera Contributor

Hi,

We use an iframe to add Dashboard within the Portal.  With our system upgrade to Zurich, Platform Analytics, and Employee Center, the Employee Center Dashboard now displays the header and menu from the console.

 

Could you please advise on how to hide the sn-polaris-header and sn-polaris-menu from the Platform Analytics Dashboard embedded within the Portal iframe? Thank you.

 

Portal URL: https://...servicenow....com/esc?id=my_dashboards

 

<iframe src="/now/platform-analytics-workspace/dashboard-library"></iframe>

 

YingboWang_0-1762994746934.png

 

2 REPLIES 2

ChrisBurks
Giga Sage

There are a couple of things to check:

1) Make sure the URL for the iframe src attribute doesn't contain the New Experience path. The path to the dashboard should be directly after the .com. For example: 

/$pa_dashboards_overview.do

 

2) Make sure in your preferences that the "Always show top navigation" is off. If this preference is on that top bar is always going to show which keep in mind that's a user preference. 

ChrisBurks_0-1762999185371.png

 

Working example on Zurich

 

ChrisBurks_1-1763000436061.png

 

 

Yingbo Wang
Tera Contributor

Hi Chris, Thank you for your prompt response. 


My Preference has the "Always show top navigation" turned off.


Our Dashboard in the Employee Center on Zurich appears the same as shown in your photo. The current issue is that the dashboard displays the message: "If you can't find the dashboard you're looking for, try the Platform Analytics library. Visit Platform Analytics experience".  When non-fulfillers click the link, the iframe loads a Platform Analytics Dashboard with Console headers and menu, as shown in my previous photo.

 

Our team would prefer that non-fulfillers do not have access to the console header and menu. How to hide or remove the message from the Portal Dashboard?  "If you can't find the dashboard you're looking for, try the Platform Analytics library. Visit Platform Analytics experience."  UI Script can hide the message from reports, but cannot hide the message from Dashboard.