The Zurich release has arrived! Interested in new features and functionalities? Click here for more

My active items should only visible the item when its count > 0

NelishaJ
Tera Contributor

Hi All,

In My active items tiles we want to display only those items whose count is greater than 0 like in this tile only requests should be visible and others should be hide and they comes up when there count is greater than 0

NelishaJ_1-1756201566815.png

Thanks in advanced

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@NelishaJ 

You will have to do this

1) clone the OOTB "My Items" widget

2) in the new widget in the server side script update the logic and ensure only those are pushed to HTML which are with count > 0

3) then add this new widget to your portal page

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

Bhuvan
Kilo Patron

@NelishaJ 

 

You can use below article to clone a widget with updated script that can be used in 'My active items'

 

https://www.servicenow.com/community/employee-center-forum/my-active-items-widget-adding-change-requ...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

NelishaJ
Tera Contributor

Is there any live example you have? I tried to make changes in the code but not positive result.

@NelishaJ 

share the complete widget script HTML, client and server

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