All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Create dropdown field to filter events by specified date range

Susan Wohlgemuth 12 May 2015 14:30 question, complete

I'd like to create a dropdown field to filter Low events by season. I like the result to be something like the following, but don't know how to get the date range in correctly, or if I'm on the right track:

{exp:low_search:form site="news_events" channel="schedule" show_empty="no" query="{segment_3}" result_page="/racing/test"}
<select name="search:schedule[]">
<option value="">Select Season</option>
<option value="2015-07-16 - 2016-01-15">Fall 2015</option>
<option value="2015-01-16 - 2015-07-15">Spring 2015</option>
<option value="2014-07-16 - 2015-01-15">Fall 2014</option>
<option value="2014-01-16 - 2014-07-15">Spring 2014</option>
</select>
<button type="submit">Search</button>
{/exp:low_search:form}


Thanks
Susan

Replies

  1. Low 13 May 2015 08:16

    You'd need to mimic the Low Events parameters. The date range you're after is a custom one, so you could use a custom date range.

    <select name="low_events:date"> 
    <option value="2015-07-16;2016-01-15">Fall 2015</option>
    <option value="2015-01-16;2015-07-15">Spring 2015</option>
    ...
    </select>

  2. Susan Wohlgemuth 13 May 2015 17:15

    Thank you! That works perfectly.