0

I have a view of nodes. I am using search api, and added the exposed filter to the view. And using ajax to update some content on the page depending on the search result.

However, if the user presses enter on the exposed-filter it submits the search and redirects the page to /my-search-page

I have tried using a hook form alter

unset($form["#submit]);

I have checked that the form alter works as I make other customisations, but dont know how I can stop the views filter form from submitting through to the search page.

Is there anyway I can stop the exposed-filter from redirecting to the search page?

Thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.