Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Get rid of Count of Record on a Portal Menu Scripted List

kemmy1
Tera Guru

Is there a setting that I can get rid of the count for this scripted list menu?

 

kemmy1_0-1777312793554.png

 

2 REPLIES 2

Tanushree Maiti
Kilo Patron

Hi @kemmy1 

 

When you r clicking on that menu check the Browser url . which ID = is showing.

https://<your instance>.service-now.com/sp?id=<abc>

 

Navigate to Portal 

Open pages 

OPen the exact page which is having that id (id = abc).

Check  Client controller /server logic

Modify code as per your requirement.

save it.

 

Note: If in page different widget are there, identify it by Page designer related link.

 

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Vishal Jaswal
Giga Sage

Hello @kemmy1 

It is important to understand where this header menu is updated and to find that out you need to navigate to All > Service Portal > Menus (table name: sp_instance_menu)

6.jpg

When you find out the correct header menu, then open it and scroll down to menu items where you will find out "Scripted list test" or you can directly search it in the table "sp_rectangle_menu_item".

7.jpg

As the type is filtered list, hence it is displaying the count.

9.jpg8.jpg

So, you can delete it from the menu items to get rid of "Scripted list test"  as a menu item or if you want to keep it but don't want to show count(number) then update it to URL or something else as per your requirement:

10.jpg11.jpg


Hope that helps!