Change Default Widget message

shantanukul
Tera Contributor

Hello Experts,

 

We are using List Tabbed widget on ESC Portal, and wanted to change the message it show when records are not present.

 

shantanukul_0-1737028092107.png

Would like to change it to, no records available!

 

Is there a way?

 

Thanks,

Shantanu

1 ACCEPTED SOLUTION

Sebastian L
Mega Sage

It is very much hardcoded into the widget and I would never recommend to clone a widget for a purpose like this. There is an alternative though, where you can alter the message by creating a sys_ui_message on the key. 

You create it in "sys_ui_message" and make sure the key is exactly how it is in the widget: "no records in {{data.table_label}} <span ng-if="data.filter">using that filter</span>" 

 

Then you set the language to english to have it "translated", and then you write your new line in messages. If you need data from the original one it is important to write it as it was. If you support more languages you need to do it per language. 

 

SebastianL_0-1737030195282.png

 


Best regards,
Sebastian Laursen

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@shantanukul 

did you check which widget is rendering that?

did you search within that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Viraj Hudlikar
Giga Sage

Hello @shantanukul 

Right click with CTrl key and open this is widget editor to see the source and try to find this message is showcased it will be mostly server script when its doing query to display records.


If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Sebastian L
Mega Sage

It is very much hardcoded into the widget and I would never recommend to clone a widget for a purpose like this. There is an alternative though, where you can alter the message by creating a sys_ui_message on the key. 

You create it in "sys_ui_message" and make sure the key is exactly how it is in the widget: "no records in {{data.table_label}} <span ng-if="data.filter">using that filter</span>" 

 

Then you set the language to english to have it "translated", and then you write your new line in messages. If you need data from the original one it is important to write it as it was. If you support more languages you need to do it per language. 

 

SebastianL_0-1737030195282.png

 


Best regards,
Sebastian Laursen