Hide "Related Articles" for Catalog Items in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2023 08:49 AM
Hi,
Apologies if this is in the wrong forum but I'm trying to figure out how to hide the "Related Articles" related list on catalog items in the Service Portal. I have attempted following this article without much luck: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0812544
I have configured the related lists on multiple views (sp, default_view, etc...) but this list still displays for Catalog Items in which the "Related Articles" related list has items populated.
(Configuration option I see based on information provided in the above article)
(The related list still appears)
How can I go about hiding this related list for Catalog Items when individuals are in the Service Portal? Do I need to edit the widget (SC Catalog item?) that is responsible for displaying a catalog item in the Service Portal? And if so, would I use the following to accomplish hiding this? I'm not sure where I would put this in the actual widget, however.
g_form.hideRelatedList('task_sla.task',true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2023 11:26 AM
I will mention that the following onLoad Client Script works in the Catalog Item directly/ITSM/Platform but not in the Service Portal:
g_form.hideRelatedList('sc_2_kb');
It seems to be the case that someone else had a similar request back in 2018 and I may simply not understand what widget I need to edit to accomplish this as I do not see any Catalog Item Widget with the Related List section displayed: https://www.servicenow.com/community/now-platform-forum/how-to-hide-related-list-on-portal/m-p/12071...
Perhaps it is indeed the "Form" widget that I need to make a change to. I will attempt that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 12:57 AM
@Michael H1 the solution in the above question says it will remove all the related lists in the form.
But for that you have to clone the form widget .
IF you are ready to do it its gonna take some time .
Mean while i will work on this and let you know if i come across any solution.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2023 03:28 PM
For anyone interested, I figured out how to hide this from the Service Portal. (Not that this is the correct way to do this, we may want to simply limit it to ITIL rolled accounts in the future. This would honestly be the preferred method). In the Page Designer for the Service Catalog pages (sc_cat_item), I simply deactivated the "Related Articles" related list. Again, likely not the best route to accomplish this long term (if you want to limit who sees this by role) but for the time being, this works. Your page may also be a different name than ours.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2023 04:32 PM
^ You will notice I neglected to see that "Roles" is an option as well. I added ITIL and that has resolved our access limitation need. Now only ITIL rolled accounts will be able to view this in the Service Portal. Leaving this for anyone that may have needed to perform a similar restriction for related lists on catalog items in the Service Portal.