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.

Text field on clicking "No" for a articles.

Kvb Kiran
Tera Expert

When the user clicks “No”, a text field should appears dynamically. Make it mandatory before the feedback can be submitted.

Do we have any out of the box functionality for this? If not, what are some ways that we can achieve this?

KvbKiran_1-1764225070786.png

 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Yes 100% possible like this:

 

https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/product/knowledge-management/...

 

 

have solution here

 

https://www.servicenow.com/community/knowledge-managers/knowledge-article-helpful-no-action-comment-...

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sarthak Kashyap
Mega Sage

Hi @Kvb Kiran ,

 

I tried your problem in my PDI there is OOTB solution please check below script 

 

Navigate to sys_properties.LIST and search for - "glide.knowman.feedback.enable_actionable_feedback_for_helpful" and make it true

SarthakKashyap_0-1764228639783.png

 

 

Now navigate to All> Service Portal> Widgets and search for "Knowledge Article Content" this widget is read only so clone this widget and there is in related list kb-feedback-task-modal open that and change the widget name to new cloned widget 

Widget:

SarthakKashyap_1-1764228765071.png

 

Ng-template - add your cloned widget name here in widget field 

 

SarthakKashyap_2-1764228789009.png

 

Now Navigate to All> Service Portal> Widget Instance search for sys_id - "15625ad50ba832004ce28ffe15673a58" and change the name of cloned widget here

SarthakKashyap_3-1764228872810.png

 

 

Now open your cloned widget in client script make 2 changes 

Line number - 388 change to this 

c.data.reason = "";

 

SarthakKashyap_4-1764228960898.png

 

Line number - 484 change 

if(!c.data.details){

SarthakKashyap_5-1764229022537.png

 

 

Result

SarthakKashyap_6-1764229064538.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak