Developer forum

Forum » Ecommerce - Standard features » Clear search results

Clear search results

Per Ljung
Reply
Hi!

The search function is working fine, but when I type something and then want to go back, the search result is still there. I want the results to disappear when I click somewhere else on the page or when I delete all letters in the search string.

Best regards,
Per

Replies

 
Marco Johannesen
Reply
You sure it isn't the browser who is remembering your form content?

If you use the "back" button, it will auto-refill previous forms (imagine going back in a checkout or login).

In our DW soloutions it dosen't remember the search field query if you go to another page.
 
Per Ljung
Reply

Hi!

Sorry, I meant I want do be able to clear the search results just by clicking somewhere else in the page, without having to press "back-button" or reload page/go to another page.

When I press the back button the results are cleared, so that work's fine, but that's not the problem.

Best regards,
Per

 

You must be logged in to post in the forum