- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 12:23 AM
In knowledge management, On below of the article in service portal, When we click on the feed back of , Helpful? NO, before submitting the feedback the comments should be mandatory.
How would i achieve this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 06:26 PM
Hi you need to clone Knowledge Article Content widget and in client controller you can make this as mandatory. Look for the below function
c.submitFeedbackTask = function(){
if(!c.data.reason){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
// add the below bold statement
if(!c.data.details){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
else{
c.submitted = true;
c.closePopup();
}
}
Refer attached attachment
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 12:29 AM
Hi Shiva Prasad
This is available OOB with knowledge feedback functionality.
Check below for more details
https://hi.service-now.com/kb_view.do?sysparm_article=KB0712422
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 01:06 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 03:12 AM
Hi I dont think this is possible to make details mandatory. The KB feed back task pop up is a angular template associated with widget
You can go to this table "sp_ng_template" and look for kb-feedback-task-modal template this is what the pop up brings up. You can try here to make it mandatory
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 06:26 PM
Hi you need to clone Knowledge Article Content widget and in client controller you can make this as mandatory. Look for the below function
c.submitFeedbackTask = function(){
if(!c.data.reason){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
// add the below bold statement
if(!c.data.details){
c.flagMessage = "${Please provide the mandatory details}";
$("#detailsComment").focus();
return false;
}
else{
c.submitted = true;
c.closePopup();
}
}
Refer attached attachment
Harish