2. Paste this code immediately after the opening
Changing any of the form inputs will cause the list of events to refresh with the filtered results.