Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make "details" as mandatory when Helpful is selected as "NO" in knowledge article

sandeep24
Kilo Sage

How to make "details" as mandatory when Helpful is selected as "NO" in knowledge article

 

Steps to reproduce.

1. Navigate to https://dev*****.service-now.com/kb

2. Open any of the article

3. Click on Helpful as "NO". Popup appear

4. How to make "Details" mandatory

find_real_file.png

1 ACCEPTED SOLUTION

Hi Sandeep,

Thanks for providing the details. The feedback popup is coming from the ng-template "kb-feedback-task-modal" attached to the widget - "kb-article-content".

To make details mandatory - you need to modify the method - c.submitFeedbackTask in the widget - "kb-article-content". If you see the method - "submitFeedbackTask", there is already code to make the reason mandatory. Implement the same for details also.

Thanks

View solution in original post

10 REPLIES 10

Hi Shubham,

I have cloned the widget and used the same code you shared. However, when I click on Helpful – No, nothing happens—the popup is not appearing at all.

Could you please help me troubleshoot this? Is there any additional configuration or script that needs to be updated to make details mandatory.

Thanks,
Manasa