We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to update Search Result page of Service Portal

User166992
Tera Guru

How to update Search Result page of Service Portal from Search to CustomSearch page. I need to update the same in typeahead search widget.

Thanks in advance

1 ACCEPTED SOLUTION

larstange
Mega Sage

Hi



It is defined in the HTML part. In line 2 the value of the "id" field will determine which page you will be redirect to when pressing return in the search field or clicking the search button


find_real_file.png


View solution in original post

3 REPLIES 3

larstange
Mega Sage

Hi



It is defined in the HTML part. In line 2 the value of the "id" field will determine which page you will be redirect to when pressing return in the search field or clicking the search button


find_real_file.png


I have been looking all over for this. Thanks a lot for this response.



I have a followup question related to this answer.   I want the typeahead selection directed to my custom article page. I have cloned both the homepage search and typeahead widget. I updated the cloned homepage widget's server script to reference the cloned typeahead widget:




data.typeAheadSearch=sp.getWidget('my-typeahead-search',typeAheadSearchOpts);



When I return to my portal page, the typeahead data does not display any results. Anyone know what I am missing. It should be pretty straight forward.


Hi Lars,


Great finding. Thanks for answer