Add Dynamic text on a Dashboard with Interactive Filters

Vinicius Luz1
Tera Expert

Hello Guys,

 

I have a dashboard with a reference interactive filter for the [customer_account] table.

On the table [customer_account] I have a custom "live feed" text field called "notes"

 

I need to display a dynamic text box on a dashboard and the text should be dynamic depending on the account's note field content

 

E.g

Account: APPLE

Notes: New Iphone 14 release on 9th sept

 

Account: Microsoft

Notes: Upcoming Q4 Updates

 

The text box should show one of these notes contents based on the selection on the interactive filter

 

Does somebody know how to do it?

@mhstouttagging dashboards JEDI for help

 

Tks,

Vini

2 REPLIES 2

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

You need to use a dynamic content block for this:-

 

Saurav11_0-1666422456983.png

 

In the dynamic content block you will have to call a script include and write the code:-

 

Saurav11_1-1666422549435.png

 

For Code reference please check the below post:-

 

https://www.servicenow.com/community/developer-forum/how-to-dynamically-update-content-block-based-o...

 

Please mark my answer as correct based on Impact.

 

Vinicius Luz1
Tera Expert

Hello,

Thanks! This is awesome...

But this is suggesting to create a new dropdown list ... Could you think about something that would use the same interactive filter I have on th dashboard?

 

I mean, connecting the content of the dynamic block or even a Knowledge Base article to be filtered with the interactive filter?


Thanks,

Vini