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.

Making Details mandatory on popup when Knowledge Article is marked as Not Helpful

Megan6
Tera Contributor

I am trying to make the Details mandatory on the popup when someone marks a Knowledge Article as Not Helpful. I have seen several posts related to this but have not seen quite the solution we are looking for.

Updated the ng-angular template "kb-feedback-task-modal" per the screenshot but it is not working. We successfully made the Details field read only by adding "readonly" in this location but "required" doesn't seem to be working. 

find_real_file.png

find_real_file.png

Thanks!

 

 

8 REPLIES 8

Hi Harish, I tried your mentioned code above. I am dealing with the same requirements but was not able to make the details mandatory. I there anything I should modify other than this?

Hi Harish,

I'm working with Megan on this.  I've cloned the Knowledge Article Content widget, and I added the code you provided.  I then added the cloned widget to the "kb_article_view" page, and removed the OOB "Knowledge Article Content" widget.

Now, when I click on the "No" button next to "Helpful", I'm getting this error.

find_real_file.png

Hi @Harish KM @MR1 @Megan6 ,

 

My requirement here is i want the submit button to show only after entering minimum of 50 characters in details , till then submit button should be greyed out. 
can you please help me how to achieve this.

Best Regards,

Pavan

PavanSanthoship_0-1711013366043.png

Initially the submit is greyed out but if i select any reason the submit button gets available to click

PavanSanthoship_1-1711013746871.png

I want it to be clickable only after entering 50 characters in details.
Thanks for any help.