The CreatorCon Call for Content is officially open! Get started here.

april_mcgehee
ServiceNow Employee
ServiceNow Employee

Knowledge management got a big face lift last year with the introduction of Knowledge Management V3 in Fuji. In addition to the new Knowledge UI, we got some new functionality added making browsing articles easier; for example, the new smart filter.

Knowledge-Homepage-Category.jpg

If you're on Fuji and you're having problems with your Knowledge V3 search not rendering your search results correctly, this could be a result of your glide.ui.escape_text being set to false. When this property is set to false you should see the kb_home.do display the message: "The content of elements must consist of well-formed character data or markup"

Knowledge+error+message.jpg

This problem is related to UI Macros: kb_header_search and kb_find_query

  • function getSysparmQuerySearchTerm()
  • character "&lt" in for loop need to be changed in "${AMP}lt"

Mitigating your Knowledge search rendering

  1. Navigate to System UI > UI Macros.
  2. Find the line below in the kb_header_search and kb_find_query macros:
    • for (i = 0; i < len ; i++) {
  3. Change this line in both UI macro records to:
    • for (i = 0; i ${AMP}lt; len ; i++) {

For more information on Knowledge search form not rendering when searching from a homepage widget or the legacy knowledge portal see ServiceNow KB: PRB629756: Knowledge v3 search and search results do not render correctly when glide....