Adding Static Content Block on a Dashboard

Konstantin7
Mega Guru

Having trouble with conditional static content blocks on Dashboard or Homepage. 

We can add a static content block to a dashboard with out any issue. But when we attempt to add conditions on when to display the content, the content is still displayed even if the condition is set to false. What can be done to make it work?

Steps that I did to add a static content block with condition:
1. Create or Open a Dashboard
2. Add Widget (+)
3. Select Context Blocks
4. Search and select "*New Static HTML"
5. Click 'Add' to add to dashboard
6. Click on "Click here" to configure the static html block
7. fill out the form:
   a. give it a name
   b. check the "Conditional" checkbox
   c. type in "false;" into the condition field
   d. type any text into the context field
8. Submit the static html block.
9. Open the Dashboard
Note the static content is still being displayed even though the condition is set to false. We have tried using the "answer=false;" condition but had same results.

1 ACCEPTED SOLUTION

Adam Stout
ServiceNow Employee
ServiceNow Employee

I believe the widget will always be shown on the dashboard.  The display may control if it is blank or not, but there is no way to dynamic show or hide widgets on a dashboard (as far as I know).

View solution in original post

6 REPLIES 6

Todd Koan
Kilo Explorer

I'm wondering if there was any answer to the question on giving non-Admins access to modify some static content but not all.  I'm not sure we want to give non-Admins the content_admin role.

Eli Guttman
Tera Guru

Hi @Konstantin7 ,

I'm having some issues with using the static HTML content item - for some reason, when i click on "Click here" to configure the static html block i'm not getting to the configuration form. there is just a blank page.

Did you run into this issue in the past?