How to make details mandatory in feedback rating of knowledge article?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I want to make details to be filled mandatory when the article rating is 1,2 or 3 in the portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Use following code as given in following post.
To make details mandatory – you need to modify the method – c.submitFeedbackTask in the widget – "kb-article-content".
line 461 in client controller.
c.submitFeedbackTask = function(){
// c.data.details if details is empty and c.data.reason=="4" user selected reason as other
if(c.data.reason=="4" && c.data.details==""){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
else{
c.submitted = true;
c.closePopup();
}
}
Solved: Make 'details' on SP Knowledge Feedback mandatory - ServiceNow Community
