Add new fields in Related Search field in Incident form

mariyajohny
Tera Contributor

Hi, I had a requirement to add Service Region and Domain fields which I have created in Knowledge table to be visible in the Incident form Related Search field. Currently the Related Search field in the incident form displays the KB Short Description, Athor, Rating, Last Modified and Views. In addition to this I wanted these two new fields also to be visible. Could someone help how I can add these fields in this. I tried all the ways, But I couldn't find a proper solution yet.

6 REPLIES 6

Hi @mariyajohny 

 

Could you try this solution once .

Refer KB: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0955875 

 

Summary

  • The custom fields on the knowledge article are not displaying 
  • how to display them

Instructions

  • Navigate to System UI > UI Macros.
  • Search for a macro, Name = kb_view_common_content, and open this record
  • Insert the following line
    $[NS:knowledgeRecord.u_myCustom_html_field]
  • In between the following div tag And make sure to replace
  •     ->u_myCustom_html_field
        ->with the database field name that you copied in step 5.
        ->Click 'Update' down below.
  • The custom field will now be visible when viewing Knowledge articles.

mariyajohny
Tera Contributor

Hi @Tanushree Maiti ,

I reviewed KB0955875. It appears to describe adding custom fields to the Knowledge Article display page using the kb_view_common_content UI Macro. My requirement is different. I need Service Region and Domain to appear in the Incident Related Search Results card before opening the article. The Related Search Results are rendered through cxs_result_kb_knowledge, so the KB solution does not seem applicable to this use case.