Is there an Omnibox option for using a different search page?
Hi guys. This is my first question here so bear with me.
I have a search box in a page that triggers a query and redirects to a results page. All this is done with the coveoquerybox and the search button, initializing with $('#searchBox').coveo('initSearchBox', srchPage). All works well, but now I have to provide suggestions there.
My approach involves using the OmniBoxResultsList, which of course requires me to change the coveoquerybox to a coveoomnibox. So, I got rid of the initsearchbox call.
This makes the omnibox work and the suggestions are showing ok, but now of course it doesn't redirect to my results page when I press the search button.
Is there an option or parameter, analogous to the "srchPage" i was using for the initsearchbox call, that works with the omnibox?
I apologize if this isn't in the right place, but I'm new here.
There are no need to get rid of the initSearchBox call. If you want to add additionnal options to your searchBox, you can to it this way:
Coveo.$('#searchBox').coveo('initSearchBox', 'searchBox', additionalOptions); <div id="searchBox"> <div class="CoveoSearchBox" data-activate-omnibox="true"></div> <div class="CoveoOmniBoxResultList"></div> </div>
The initSearchBox call will instanciate the components properly, using your additional options. If there are changes that must be done after components initialization (example: a placeholder), it can be done this way:
Coveo.$('#searchBox').find("input.CoveoQueryBox").attr("placeholder", 'type here');