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
3 weeks 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
3 weeks 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Tanushree Maiti ,
Thanks for your reply,
feedback is getting captured even if we cross the dialog box without filling details and reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Do you mean without clicking "Submit" , feedback is getting captured , when you cross the dialog box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Tanushree Maiti , yes without clicking Submit , feedback is getting captured , when we cross the dialog box
