
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 07:42 AM
I am working on getting our knowledge base up and running for the KB Manager. We want users to be able to comment on KB articles, but we want to make sure they are logged in.
When someone is not logged in they can leave a comment as "guest" and we would have no way of knowing who left the comment. We would still like all KB articles to be visible to the public, but just make them sign in if they want to leave a comment.
How can I make this happen?
Thanks,
Jackie
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 11:11 AM
I have found the solution.
Change the Application from Default- Global to Knowledge Management - Service Portal. Locate the "Knowledge Article Comments" widget and uncheck public. This gets rid of the entire comment section if you are not logged in. Once you log in you will be able to leave a comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 07:49 AM
Hi,
You can write before insert business rule on kb_feedback table with condition as
condtion field : gs.getUser().getDisplayName() == "guest" && current.comments.changes()
Script field : current.comments = '';
This script will overwrite the comments entered by guest users
Note: Please mark reply as correct if it has answered your original question or mark it as helpful if it has provided some help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 09:53 AM
Yes, this is not working, what is happening is that comments in kb_feedback table are showing empty, however comments on kb_view are available. This should not be the case ideally.
I also thought to restrict access on comments field on kb_feedback by createing WRITE ACL, I could disable comment access to kb_feedback comments field, however comments on kb_view page still appears.
Please see below articles if those can be helpful to you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 11:11 AM
I have found the solution.
Change the Application from Default- Global to Knowledge Management - Service Portal. Locate the "Knowledge Article Comments" widget and uncheck public. This gets rid of the entire comment section if you are not logged in. Once you log in you will be able to leave a comment.