<p>Yes, you can achieve this by using the <a href="https://docs.solspace.com/craft/calendar/v3/template-functions/calendar.events.html#param-search" rel="nofollow noreferrer"><code>search</code> parameter</a> on <code>calendar.events</code> just like you would with regular <a href="https://craftcms.com/docs/3.x/searching.html" rel="nofollow noreferrer">Craft Searching</a>.</p>
<pre><code>search: &quot;customField:myvalue*&quot;
</code></pre>
<p>It might also look something like this in your template:</p>
<pre><code>{% set eventOptions = {
  rangeStart: 'now',
  rangeEnd: '3 months',
} %}

{% set events = craft.calendar.events(eventOptions).search(&quot;location:test&quot;) %}

{% for event in events %}
   ...
{% endfor %}
</code></pre>

CC BY-SA 4.0
2020-12-21T15:45:26.960Z
2020-12-21T15:45:26.960Z
Solspace
<p>My current calendar plugin has filters by category, location and a date selector. Is this all achievable in solspace calendar?</p>

<plugin-solspacecalendar>
Is there a way to filter calendar results by location?
# Is there a way to filter calendar results by location?

(Asked by: username_0 on 2020-12-19)

My current calendar plugin has filters by category, location and a date selector. Is this all achievable in solspace calendar?

**Tags:** plugin-solspacecalendar

---

## 1 answers

### Answer by username_1 on 2020-12-21. Score: 1

Yes, you can achieve this by using the search parameter on calendar.events just like you would with regular Craft Searching.
search: "customField:myvalue*"

It might also look something like this in your template:
{% set eventOptions = {
  rangeStart: 'now',
  rangeEnd: '3 months',
} %}

{% set events = craft.calendar.events(eventOptions).search("location:test") %}

{% for event in events %}
   ...
{% endfor %}


---

