Forums › Forums › Search & Filter Pro › Caught another bug in your plugin. Auto submit does not work w/ two date range
- This topic has 18 replies, 3 voices, and was last updated 6 years, 7 months ago by
Anonymous.
-
Trevor(Private) January 28, 2019 at 9:31 pm #200353
I have come back to this one. Where you have any range field (number or date), the ranges are not affected by Auto Count. This is intentional. Read more about this here:
https://support.searchandfilter.com/forums/topic/custom-max-price-for-price-slider/#post-77119
Trevor(Private) January 29, 2019 at 7:31 am #200400What you are saying is that if you have a date range, Auto Submit does not work when the first field is selected, and only submits after both fields are selected. If that is the question, that is correct and is intended.
You could use javascript on document load to autofill one of the fields when the page opens. For example, the TO date, with a date far in the future, so that selecting the From field will effectively give you ‘from this date onwards’.
Trevor(Private) February 1, 2019 at 10:45 am #200886Hi James. As promised, on my test site I set up the form with two date range fields, and Auto Submit works fine. See here:
https://sandfdev.cdnwebservices.net/shop/
There are 5 posts. In the first date field they have sequential dates from 1 Feb 2019 to 5 Feb 2019, and in the second date field they have sequential dates from 1 Mar 2019 to 5 March 2019.
Anonymous(Private) February 1, 2019 at 7:58 pm #200992Hey Trevor – its actually not working fine on your test site either. If you notice you are having the same problem I am having. It does not auto-submit unless BOTH of the sets of ranges are completed. In other words, you have to pick dates for “First Date” and “Second Date” for auto-submit to activate. My goal is for auto-submit to activate even if you just completed ONE of the sets of date fields, ex. you only choose a start and end date for “First Date”. Please use the form you put up on your test site and you will see exactly what I mean.
Do you think a bug fix can be put in for this issue?
-
AuthorPosts