- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2016 10:49 AM
For Knowledge v3; how can I display/show the comments box, yet hide previous user comments from non-knowledge_admins? We want all users to be able to submit comments on an article, however we only want knowledge_admins to be able to view those comments once submitted.
The following knowledge property will either show the comment box and user comments or nothing at all if you dont have the knowledge_admin role.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2016 05:11 AM
Comments controlled by UI Macro kb_view_feedback:
The code that displays the actual comments is this portion:
<div id="comments_section" class="snc-comments-section" style="display:$[displayFeedbackOn];">
<j:while test="${feedbackRecords.next()}">
<div class="snc-kb-comment">
<div class="snc-kb-comment-by">
<img src="images/icons/feedback.gifx" alt="${gs.getMessage('Feedback')}" />
<span class="snc-kb-comment-by-title">$[SP]${gs.getMessage("Posted by")}</span>
<span class="snc-kb-comment-by-user">$[SP]${HTML:feedbackRecords.user.getDisplayValue()}</span>
<span class="snc-kb-comment-by-title">$[SP]${gs.getMessage("on")} </span>
<span class="snc-kb-comment-by-date">$[SP]${feedbackRecords.sys_created_on.getDisplayValue()}</span>
</div>
<div class="snc-kb-comment-by-text"><g2:no_escape>${HTML:kbViewInfo.getFeedbackComment(feedbackRecords)}</g2:no_escape></div>
</div>
</j:while>
</div>
Added condition to check if user does not have knowledge_admin role, then display no comments.
The line immediately following that portion, <g:inline template="kb_view_feedback_entry" /> is what controls the "Leave a comment..." comment entry portion.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2017 12:50 AM
Hi Chandra,
it looks like you are accessing the KB articles via the Service Portal?
The property which Billi configured and set to 0 is only available for v2 knowledge management: glide.knowman.feedback.display_threshold
What you could do is to adjust the KB Article Comments Widget of the Service Portal and change whatever is required for your use case. I just did it for a demo purpose to only show feedback, if the user has the knowlegde_admin role and it could go like this:
Best regards,
Ulrich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2017 02:21 AM
hi
you have given the role over there but even the current user has that role he also not able to see the feedback

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2017 10:38 PM
All this works well for legacy version of the knowledge. Is there any for V3, because I see is complete code written in angular and I am not able to find where is that code in the system.
I don't know if we may even have access to it or not ?
Regards,
Rohant Joshi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 12:56 PM
how would you add an alert or info message that a feedback/comment has been submitted after the user posts a comment?