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.

Dropdown in homepage search widget isn't showing

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

I have created a custom Typeahead search & homepage search Widget.

I did this like 6 months ago and have some flashback that there was a twist to get it to work.

If I type something, the dropdown isn't working like it should. If I press enter I get to the search page and the correct results is showing...Anyone know about this behavior?

This is how it looks like:

find_real_file.png

and if I press enter I get to the search results and it shows me the 6 items I should have seen in the dropdown. If I change the custom homepage to use the OOB typeahead widget here:

find_real_file.png

it works like it should...

//Göran

1 ACCEPTED SOLUTION

found it... when I cloned the widget, the angular ng-template "sp-typahead.html" didn't tag along, and it uses that to show the results...


find_real_file.png



Weird part here is that that template can only be on 1 widget at the time. so when I edited and put it here, it vanished from the first.



so I created a new one for my typeahead with the same data as this template and just changed in the code to go for my template.



//Göran


View solution in original post

5 REPLIES 5

Hi Goran,


Thanks for this, it certainly helped but what I would like to know is what is the stuff that you changed when you created the angular ng-template? When I copy and paste the code, this doesn't seem to be working for me.


Mussie