Select Options from Many Choices.
I’m trying to build out a running race calendar.
I need users to be able to select race distances from a set group of options. Some events have multiple race distances. Filter Bar is creating sets of distances “50k|50m|100k” instead of allowing a checkbox of the field “50k” to be selected to show that race…
Essentially I think it’s the same thing that this woman needed: (https://theeventscalendar.com/support/forums/topic/need-to-filter-on-single-instances-of-checkbox-additional-field/)
She found a work around, but I don’t know what that was.
I have this problem for my custom fields of Race Distance and for the field of Course Description.
I have reviewed the instructions @ (https://theeventscalendar.com/knowledgebase/creating-custom-filters-for-filter-bar/) … It seems I’ll need to learn how to code to do any of that…I know how to edit things with CSS but that’s about it. I can copy/paste with a strong set of step by step instructions.
Any chance that could exist for this? I’m honestly a little blown away a solution for this filter isn’t included as it’s a very common need for a variety of events.
The end result would be the same functionality as this sites search (http://ultrasignup.com/events/search.aspx)
Thanks for reaching out! Let me try to help you with this one.
So, I did some testing based on your post and the sample site you shared. This is what I did and what I got:
Under Events > Settings > Additional Fields tab I created a checkbox field with the distances: https://cloudup.com/cAnxYW1KYKb
On the event page this gives me the checkboxes for the different distances, so you can select more: https://cloudup.com/c395PKFMoL2
Under Events > Settings > Filters tab I added ‘Swimming’ to the filter bar and set the type to be checkboxes: https://cloudup.com/cA-63A8ETqD
On the front-end this gives me the checkboxes in the filterbar: https://cloudup.com/cXy7U8bMrwv
Is this what you would like to achieve?
Thank you for your reply and your willingness to help!
The issue is that
- an event
may have 1 (or more) distances available.
Our issue is that when an event has
- more than 1
distance then the filter creates additional result (example:
Race 1 = 5M (this race only offers 1 distance)
Race 2 = 5M + 10M (this race offers 2 distances to choose from)
Race 3 = 5M or 10M or 100M (this race offers 3 distances to choose from)
Currently this would mean that the Filter Results in the following options:
5M | 10M (<—- we don’t want this!)
5M | 10M | 100M (<—- or this!)
We need the Filter Results to only return only the options we included in our additional fields:
If this True then if a user selects:
5M then the filter would return Race 1 & Race 2 & Race 3
10M then the filter would return Race 2 & Race 3
100M then the filter would return Race 3
This type of scenario is very common in all kinds of athletic events and it’s surprising to us that it wasn’t built into the plugin.
Thank you so much for your help. I suggest this feature be included in future releases of Filter Bar.
That makes absolute sense and thank you for your time to create such a detailed explanation! Much appreciated!
The additional fields and the filters in Filter Bar should indeed work like how you would like to.
I have created a screen recording to show you how I achieved it. You can take a look at it here:
And I forgot to include how the filter bar is set, that one is here:
I hope this helps, let me know.
Thanks for the video, that’s so interesting…
My data was all populated using an import from a .csv file exported from MS Excel version 16.12 for Mac…
My original export was using the file type: “Comma Separated Values” and using a bar vertical bar between values…
In my events each value was correctly selected in my Additional Event Fields but in my search results it was showing the groupings with the bar.. (as in my photos previously attached)…
After watching your video I decided to delete my events and re-import them… Only this time I used the file type called “Macintosh Comma Separated”. This seemed to solve the problem.
Maybe something to further test on your end.
I think I spoke too soon. I’m having a hard time re-creating the success I thought I had earlier.
I’m working with a newer data-set and trying to import the csv with no luck.
I can get the correct variables checked in the radio boxes on the event management page but on the /calendars/ page with the filter I continually get full set (ie. 50k|50m|100m) instead of only the individual distances…
I have no idea what I’m doing wrong with the csv file or the import.
example CSV file attached…
I checked your file and import.
I believe this is a glitch on our side. I will file a bugticket for this so our developers can take a look at it.
As for now I don’t really have a workaround for this, I’m sorry. The only way to fix this is to open and re-save the events.
I know that 5000+ is a lot, if you allow me here’s how I would do it to make it somewhat faster than opening them one-by-one.
- use Ctrl + click, that will open the events in a new tab
- open 5-10 at a time
- use Ctrl + Tab to switch between the tabs
- you position your mouse over the publish button and
- Click, Ctrl + Tab, Click, Ctrl + Tab …
- after all tabs saved, close them and open another 5-10
- you can use Ctrl + w to close a tab
Here’s a short screencast example I did. I used Ctrl + click when I clicked on ‘edit’, Ctrl + Tab to switch tabs and Ctrl + w to close them when the indicator in the tab stopped (meaning saving is ready).
If you are using a Mac, then it is likely Cmd + key.
Hope this helps. Let me know if you have any further questions regarding this.
I am going to set the status of this ticket to “pending fix” and we will update it once the fix is released.
If you have any new questions or issues please create a new ticket and we’ll help you out.
Thanks and cheers,
Thanks for the follow-up! If there is any way to determine an ETA on the fix or where it is in priority that would be great to know.
In the meantime I’m going to upload a couple months so I can continue with dev/testing of other things. Hopefully there is a fix before we go live.
I guess hold off on the refund for now. I’m looking into other solutions but will additionally write up a short list of 1-2 additional things I’m trying to get accomplished with this.
If we can work through those together this tool may be the best result for us.
More to come…
Yes your stipulations above work for us.
Below are my notes of what we’re seeking help with.
I did have a ticket open for the Date Search. https://theeventscalendar.com/support/forums/topic/search-filter-by-month-and-date-range/
My frustrations in Jamie’s response was she essentially said, go find “this” and copy it “there”. Since I’m not that experienced with PHP I’m unsure where to go to find it (which PHP file and what line of code am I looking for). I usually end up fumbling around for a couple hours breaking things.
(note: I did find code (on the heldesk) to help me add the additional race field to our map list, the only issues was it took be about 10 hours to figure all that out)
Other applications I’ve purchased provide support where they give more specific instructions. Generally I’m fine at finding, copying, pasting and modifying code with some provided instructions. What file to look for, what line of code to copy, what file (and where) to paste it. Change this to that, etc.
Thanks for your understanding and help. If we can get the issues below solved I’m confident we’ll be long-time TEC customers.
Calendars Requirements / Additional Modifications…
1. I’m okay (a novice) at CSS.
2. I’m okay with copying files to my child-theme, modifying PHP (w/ instructions), etc.
3. I don’t know much (very very little) about actual PHP programming. I’m am taking some courses but it’s taking me longer than anticipated to learn anything that really helps me with my problems below.
For the purposes of everything below assume that we will ONLY be using the MAP View as our default and only available view.
As previously discussed we need to be able to import events with multiple variables for an additional field. (i.e. “Race Distance”) Per your previous response you have a fix in mind.
I did think that maybe using the Category Field (or possibly Tags?) for our Race Distance may solve the problem? Do you have any thoughts on using either of those fields for this?
Either: (option 1) I would like to search by a Date Range OR (option 2) I would like this field to search by Month (with the ability to select multiple months). Whichever option is easier to implement is fine by me.
Would it be possible to add a functionality where the search radius can be adjusted by the user? (i.e. a selector box that would have <50mi, <100mi, <200mi, <500mi, >500mi)
Filter Bar Modification -> (show options on load, aka remove drop down)
I would like for the checkboxes for these fields to be shown when the page loads, they should be formatted similar to this: (2 columns, or perhaps even 3) : see example
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team