tWay to flag a Knowledge article from related search results

gnewuser
Tera Contributor

I am trying to add a "Flag article" button that is opened from the "related search results" in Incident. What is the preferred way to do this.

In the attached images, I would like to add "Flag article" button next to "This helped" button

5 REPLIES 5

Community Alums
Not applicable

Hi @gnewuser ,

You would need to modify the kb_preview UI page to include similar content of that to the kb_view page to flag the article.

Please note that: Modifying an OOB UI page, like kb_preview, means it will be skipped in future upgrades.

Thanks Sandeep for the response but where and how do I modify the kb_preview? 

gnewuser
Tera Contributor

Is there a toggle for "flag article" that I could turn on in the UI page?

Sumanth16
Kilo Patron

Hi @gnewuser ,

The script that handles the click action of this button is in the UI Script: KBViewArticle (method: flagArticleHandler)

Also,The "Flag article" button is depending on the field "Disable suggesting" value on the article. This value is normally inherited by the Knowledge Base, however if the article is moved around knowledge bases, it's possible for it to be different.It's not usually visible on the form by default, the easiest way to check would be to add those columns to a list view for articles

 

Please refer to the below thread:

https://www.servicenow.com/community/itsm-forum/flag-article-in-related-search-results/td-p/819134

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda