Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Date filter only working if Start and End specified

Viewing 4 posts - 1 through 4 (of 4 total)
  • Christian
    #122818

    I am finding that the date filter query runs on change of the Start date which is fine but it doesn’t return all records after the Start date, it still returns earlier posts.

    /?_sft_region=eurasia&post_date=01012017+

    Is does work when you add an End date

    /?_sft_region=eurasia&post_date=01012017+07012017

    We have done some customisation work so I can’t be certain without further investigation if anything we have done has affected the default functionality but is there a way to check the query being generated? I can’t seem to find it in the Developer Debug Bar, perhaps as it’s an AJAX request.

    Thanks

    Trevor Moderator
    #122867

    Does it change the URL to the first example you show as soon as you change the date?

    For me, when I do these things, I usually use javascript to set initial dates (on page load) based on today’s date as defaults, but I know some developers do not. You have to check if anything is already set though!

    Christian
    #122886

    Yes the URL changes to first example when you click out of setting the Start date. Are you suggesting I should set the End date to today’s date via JS on page load?

    Is there a way I can see the queries being generated? Setting an End date seems more like a patch than a fix. Thanks.

    Trevor Moderator
    #122890

    Normally, the Auto Submit function will not submit a date change until both fields have been selected. Have you done something that might have changed that?

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.