0

I'm trying to add 2 text fields in Low Search for users to select a beginning and end date for an event search. I'm basing my events off of entry_date instead of a custom field (though I could run a custom field if it's easier).

    <label for="start_on">From</label>
    <input type="text" class="datepicker" placeholder="From" name="start_on">

    <label for="stop_before">To</label>
    <input type="text" class="datepicker" placeholder="To" name="stop_before">

When I enter my dates (currenty being returned in YYYY-MM-DD format, search results return nothing. I'm feeling a bit lost on how to get low search to read my start_on and stop_before limits.

1 Answer 1

0

Both the start_on and stop_before parameters need this format: YYYY-MM-DD HH:MM, as per the native docs. If you make sure the fields are in that format before the form is submitted, it should work.

1
  • Got stuck on this one too!
    – Blair
    Mar 9, 2017 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.