Home › Toolset Professional Support › [Resolved] Checkboxes custom field not appearing for View search filter
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 13 replies, has 2 voices.
Last updated by Christopher Amirian 2 years, 6 months ago.
Assisted by: Christopher Amirian.
I've created a view to show Property Listings. I have a custom checkboxes field "Listing Amenities". For some odd reason it does not appear as an option when I try to add new filters to the Query Filter section or to the Search and Pagination. All the other custom filters appear except this one.
hidden link
Tim
Hi there,
Would you please test by adding a new checkboxes field as a test to your field group and create a new view and test and see if that checkboxes field shows in the search section of the view?
Also, Would you please kindly follow the steps below to provide the debug information?
Here is how to do so:
https://toolset.com/faq/provide-debug-information-faster-support/
Thanks.
I added a new checkboxes field and it does appear in the search section of the view.
Hi there,
So it seems that the Checkbox in question is corrupt somehow. Would you please do a change in the original checkbox? For example, make sure that the settings of the checkbox are like the ones that you newly added.
After that go to the post and try to change the checkboxes values to something else to make sure the change is saved in the database.
See if changing the checkboxes in question causes the checkboxes to show the search field of view.
Thank you.
Yes, the settings are the same as the original. And when I change the checkboxes it is saved in the database. But I don't understand what you meant by "See if changing the checkboxes in question causes the checkboxes to show the search field of view." If you mean if they are now available to add in the search filters, no they are not.
I am using the "Show one of these two values:" setting in the checkboxes options, but that shoulnd't matter right?
Hi there,
Hi, to use a Checkboxes field group as a custom search filter, you must select the option "When unchecked, don't save anything to the database" in the field group editor screen. If not, you'll get unexpected results.
If you set the checkboxes to that and it still dows not show, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
ahh, so that was the issue. When I switched it to "When unchecked, don't save anything to the database" then it allows me to add it as a search filter. I'll have to redo some shortcodes I am using on my site but I think this solves the issue.
But there are so many little things like this that your documentation doesn't clarify and so many basic adjustments needed, that can be found through deep searching of past tickets, that really need to get incorporated into the plugin documentation or UI. Really hope Toolset can get things more together, even though it's already an awesome plugin suite.
Actually I spoke too soon. While I can now add this checkbox filter, I cannot adjust its settings. It now says "Filter based on the frontend search filter by Listing Amenities", as you can see from this screenshot:
hidden link
I'm not sure what this means, and why would this filter say this, but the one above does not, and they are both checkboxes field added in the same way.
Hi there,
The message that you annotated in the screenshot, is not related to the checkbox and it is an information box to give you details about the whole search settings.
Everything should work OK now but if it is not I'd be happy to take a look at the website.
I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restoration.
Make sure you set the next reply as private.
I also need you to give me the details of which checkbox you used and which view to check the results in.
Hi there,
I see the Listing Amenities filter. This Query Filter was most likely created for you automatically when you inserted a filter control in the Search and Pagination editor panel. Unless you had already created one manually. In that case, it would have been updated automatically based on the filter control in the Search and Pagination panel. I would not try to configure the Query Filter corresponding to a custom search filter manually unless you're really sure you understand all the settings. The URL parameters, slugs, and other settings must all match perfectly with the settings in the custom search filter control. So I would leave this Query Filter as it is currently set.
I do see that the search regarding the checkboxes works correctly and yields correct results. If you want to remove the automatically generated query filter, simply remove the Amneties checkboxes from the search filter and save the view.
Thank you.
Thanks, but it doesn't work correctly. It currently works as an OR filter not AND. So if I select Dishwasher I see 35 results, and if I select Dishwasher and Washer/Dryer I see 48 results, which indicates an OR operation is occurring.
Hi there,
Yes, the default operator for the checkboxes in the search is OR.
I asked the second tier to see if there is a workaround for that.
I will update you as soon as I have an answer.
Thank you.
Hi there,
I have an update from the second-tier. I created a video explaining the situation and what you should do to access the checkboxes filter options:
hidden link
Thank you.