Forums › Forums › Search & Filter Pro › Custom submit button not saving search fields from different page
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by
Trevor.
Viewing 6 posts – 1 through 6 (of 6 total)
-
Anonymous(Private) March 30, 2017 at 10:02 am #100338
Hi,
I’ve got a search form on a homepage which re directs to the results page and then runs the ajax search using the setting ‘Only use AJAX on results page’.
I’ve used a custom search button to fire the search from the homepage but the fields aren’t being saved in the results page and instead go back to the default.
I thought this would do this the trick but it’s not working…
<script> document.getElementById("submit-form").addEventListener("click", function () { $('.searchandfilter').submit() }); </script>Trevor(Private) March 30, 2017 at 2:10 pm #100389You have a search form on the page, but the submit button is elsewhere on the page (not in the form)?
If so, all need do as in this post:
https://support.searchandfilter.com/forums/topic/submit-form-from-external-button/#post-81103
-
AuthorPosts
Viewing 6 posts – 1 through 6 (of 6 total)