Forums › Forums › Search & Filter Pro › How can I enable auto submission on only one field?
Tagged: autosubmit, sort
- This topic has 4 replies, 2 voices, and was last updated 7 years, 12 months ago by Trevor.
-
Anonymous(Private) November 30, 2016 at 5:04 pm #73286
I intend to separate search and sort. Search fields on the left then sort on the far top right position. I have already managed to achieve this visually but now the problem is that having someone go back to click on the submit button after choosing the sort criteria is very bad user experience. How can I enable auto-submit on the sort field only?
I tried having two forms one for search and one for only sorting, but the sort auto submission keeps resetting the search results.
Trevor(Private) November 30, 2016 at 5:09 pm #73292This is not possible with the plugin as it is now. I could be suggested as a feature request though.
However, you could switch off auto submit and instead add some custom javascript to trigger the form’s submit with the onchange event for the sort order.
Anonymous(Private) November 30, 2016 at 7:29 pm #73348Thanks Trevor, custom javascript worked. You guys may want to consider offering a way to separate the two (Search and Sort) in future. It will offer more flexibility in terms of design. A typical search page has search fields positioned to the left and sort on the top right.
Thanks again
-
AuthorPosts