Hide comments on KB Articles that are in a specific Knowledge base
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Has anyone successfully hidden comments on Knowledge articles within a certain Knowledge Base for users without specific roles (sn_hr_core.admin, knowledge_admin, admin) while keeping the comment submission form (kb_feedback_section) visible in Xanadu Patch 9a? We’ve tried a UI Script to hide div.message-body and #iframe_live_feed on kb_view.do, and an ACL on kb_feedback.comments to redact comments in list view, but comments remain visible for non-authorized users on kb_view.do. Any proven solutions or insights? I've reviewed Hide User Comments on KB Articles and How to hide KB article comments but it sounds like no one successfully accomplished their goal and my goal is slightly different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @Marc Park
Have you ever used Disable commenting field in knowledge base form. This field hide the comment section in kb_view and in portals also
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Marc Park ,
Each Knowledge Base in ServiceNow has a built in Disable Commenting checkbox. Checking this disables comments for all users including in kb_view.do and the portal, but does not remove the comment submission form (kb_feedback_section)..
and, To selectively hide comments based on user roles, you can override the canShowKBFeedback() logic in the KBViewModel Script Include. This method gives you granular control over who sees comments, and importantly, still allows the comment form to be visible....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @kaushal_snow , thanks for your response. Cheking the Disable commenting option at the knowledge base level does also remove the option to submit a comment in my instance.