KB article ratings

priyajanaki
Giga Contributor

Currently, when someone reviews a knowledge article HR, if they leave a bad rating of 1 & 2, one feedback box needs to be auto populated as mandatory. 
Could someone please give me a solution for this?

Thanks in advance.

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@priyajanaki 

you will have to clone the OOTB widget and then make the changes to it

see this link

Make 'details' on SP Knowledge Feedback mandatory 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

priyajanaki
Giga Contributor

I have clone the OOTB widget and written the code also but its not working.

Do I need to change the OOTB widget name to cloned name in employee center. 
If yes means could you guide me on that?

Madhushree_S
Tera Expert

Hi @priyajanaki , 

 

I had a same requirement, and sharing the implementation below.

  1. "Knowledge Article Content" OOB widget to be cloned and name as you wish e.g., ABC. Cloned Widget should be in same application scope as OOB Widget.
  2. Widget name to be changed to "ABC " from "Knowledge Article Content" in the following Angular ng-template : kb-feedback-task-modal 
  3. In the "kb_article_view" & "esc_kb_article_view" page, for Instance: Knowledge Article Content changed widget name to "ABC" from "Knowledge Article Content". 
  4. In cloned widget "ABC" client script function - "c.submitFeedbackTask", edited the "if" condition if details to be made mandatory as below:
    if(!c.data.reason || (c.ftask.feedback_action == 'rating' && !c.data.details)) 

In the "glide.knowman.feedback.enable_actionable_feedback_for_rating" system property value is set to 3 for feedback modal pop up.

* OOB - Knowledge Article Content
* Cloned - ABC
* Service Portal - kb_article_view
* Employee Centre - esc_kb_article_view
* System Property - glide.knowman.feedback.enable_actionable_feedback_for_rating