How can I pass additional query params from the standalone search box?
I have a standalone search box in the header of my website that correctly passes the value entered to the search results page and executes the query on that page. I would like to also pass additional query parameters to the search results page depending on the selected item in a drop-down list. I tried setting a hidden expression element:. But it did not add it to the url. Is there a way to interrupt the standalone search box before it builds the url params and add my additional data?
Thanks! Cris Corra
*Update: here is a printout of the errors I am receiving on the results page: http://cl.ly/image/0J3h3s383X0d/Windows7VSNET2013.png
The standalone search box is in fact a fully working search interface that forwards it's state to the real search page, so you can add additional arguments by putting them in the state after calling initSearchBox (or when your selected value changes, etc.):
$('#mySearchBox').coveo('initSearchBox'); $('#mySearchBox').coveo('state', 't', 'Email');
Then the query string argument will be included in the hash when redirecting to the search page.