Example Description
In this example, users can create a filter to filter events by categories in the Wix Events element.
How We Built It
Database Collection:
In this example, we use the “Events/Categories” database collection. When installing Wix Events & Tickets on your site, this collection is automatically added.
Page Elements:
We added the following elements to our site:
Wix Events element: Displays the event list.
Dropdown: Used as a filter, where the site visitor selects the category.
Code Workflow:
We added the following code to our site:
Fetch all categories from the collection and map them into the array.
Assign the array to the dropdown.
Add an event handler in the dropdown that sets the Wix Events element to display only events with the selected category.
Related Examples
Did this help?
|
Thanks for your feedback!
Custom Event Ticket Purchase Flow
Create a custom ticket purchase flow without using the Wix Events widget
Intermediate
Custom Event Ticket Picker on Events Frontend
Create a custom ticket picker for your events.
Intermediate