- This topic has 5 replies, 2 voices, and was last updated 9 years, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Custom submit button not saving search fields from different page
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>
You 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