I need to have a separate search form that can be placed in the header. When the user enter a query, the Apache Solr results page shows as normal BUT I want the search terms to be still visible in that search form until the user navigates to a page that isn't /search/*.

I've already found out how to hide the additional search form that appears above the results (am happy to discard the "retain current filters" checkbox) but retaining the query in the header search form has got me stumped. I'm sure it's something really simple...!

many thanks

Martin

Comments

pwolanin’s picture

try using the session data

jpmckinney’s picture

Status: Active » Fixed

You can form_alter that search form (which one is it? search_theme_form? search_box_form?) and set its text box's value to search_get_keys().

pwolanin’s picture

Status: Fixed » Closed (fixed)