- This topic has 3 replies, 2 voices, and was last updated 5 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › Filter different taxonomy selections without AND/OR while clearing previous?
Tagged: filtering
I am trying to figure out how to have a Search & Filter Pro set up where there are 4+ taxonomies.
When someone selects an item under any taxonomy dropdown the results update to only posts with that selection and the other dropdowns are reset and selections from those dropdowns are not included using AND/OR.
Is this possible with this plugin?
Thanks!
So, you want the results to reflect only choice made in the last used field?
The form would have to have Auto Submit OFF. It would then require some custom JavaScript to clear the other fields, and then submit the form. To trigger the submit, use JavaScript like (assuming the form has an ID of 1234) this:
$('.searchandfilter[data-sf-form-id="1234"]').submit();
Thank you!
This appears to be working for me! Hope this helps anyone else too!
$('.searchandfilter[data-sf-form-id="15"] ul select').change(function(){
$('.searchandfilter[data-sf-form-id="15"] ul select').not(this).prop('selectedIndex', 0);
});