Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Typeahead Search Icons display incorrectly - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Typeahead Search Icons display incorrectly
KB0780272

Typeahead Search Icons display incorrectly


628 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When searching for Catalog Items and then searching for knowledge articles followed by a search for Catalog items, the Glyph icons start showing incorrectly i.e. the Catalog Items show up with KB article glyph or the reverse.

Cause

This behavior was logged as a bug in PRB1238271 - Typeahead glyph does not change based on search results. 

This PRB was fixed and the applied fix was in the ng_template record used for the Typeahead widget. 

This customer was using a custom version of the widget and the attached sp_ng_template has the older(not-fixed) code. 

Resolution

As mentioned above, since the customized version of the Typeahead widget was using a custom sp_ng_template record, either switching to the OOB Typeahead search widget or modifying the custom sp_ng_template record would fix the issue.

 

The fix includes modifying line 3 of the ng-template record. The older code has an ng-class tag which needs to be replaced by a class tag.

This is the only change made to fix this issue. Alternatively, you can copy the template code from the OOB sp_ng_template record called sp-typeahead.html  and paste that into the customized ng-template record and save the same.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.