- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 12:42 PM
Is it possible to hide a popular item from popping up here? So if I don't want apple ipad 3 to not show up in the popular item is it possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 02:55 PM
Best Practice would be to create a system property and store comma separated sys_id values of the to be hidden catalog items in this property.
Then you can add below one line of the code in Server Script of cloned widget. That is it. You are set.
Next time when you are asked to again exclude/include another catalog item , You just need to add sys_id of the catalog items in the property. No code change required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 04:24 PM
Would type of type would that system property be? String, etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 04:34 PM
I created a string type and added the sys id to the value and clone the widget and added the code and it's not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2020 06:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 06:47 AM
Hey Rajneesh,
I'm looking to exclude an item from the Popular Items on the Service Portal and your guidance seems just want I needed!!
I think I'm nearly there. I've managed to create the System Property, cloned the SC Category Page widget and added the script. However, the item is still displaying under Popular Items.
Am I missing a step? Do you have to retire the SC Category Page in someway and publish the newly created cloned version? Sorry, I'm completely new to Service Portal!
Any help would be greatly appreciated.
Many thanks
Tracey

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 05:06 PM
Dang John...you're asking like numerous questions every day, haha...glad the Community is helping you out...
I hope you're learning some stuff...
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!