knowledge feedback comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 06:09 AM
hi wanted to know if anyone had had any success in making knowledge feedback comments mandatory in the knowledge feedback pop up modal (when other reason is selected) any other way than cloning the widget?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 07:31 AM
Hi @alipia123,
Check the following post and solution from @Harish KM (See below link).
So as to ensure links are not broken in the future, here is Harish's solution:
You need to clone the 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();
}
}
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 02:41 AM
Thanks for your reply. I was wondering though whether there was a solution without having to clone the widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 05:21 AM
Hi @alipia123,
I've checked a number of sources including SN Docs, release notes and the community (as well as system properties) and cannot find any other way unfortunately.
It looks like you're going to have to clone the widget. Maybe log a ticket with SN support to confirm.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie