Hi,
I’m trying to figure out a way to do the following…I’d appreciate some direction.
I want to create compare checkboxes.
I have a custom post type “profile”
I have a custom field “offer”
I want to create a page or post with Blocks where a user can check the name of the company profile (post title) from a list, so there would be a list of the profile titles with a checkbox next to it then in a container below, the custom field “offer” would be displayed for the posts checked off in the list above.
Can I do this with Toolset? Would it be a search? Seems like not really since they are checking off the titles of posts to see one custom field contained within that custom post type but maybe so?
I was thinking if the checkbox is a custom field “choose to compare” then the container below could query that custom field type to display the field? Or is the query loop only for posts?
Thanks so much in advance.
Hi,
Thank you for contacting us and I'd be happy to assist.
I'm afraid, this comparison feature is not available in Toolset plugins and I can't think of any simple workaround to achieve this through a Toolset view.
It would be better to use a third-party comparison table feature for this and here are some useful resources on the topic:
hidden link
https://wordpress.org/plugins/tags/comparison-table/
hidden link
regards,
Waqar
Why wouldn't it work to do a two column search, and let them choose the post title (Company) on the left, and then the details field on the right. Wouldn't this give them all of the results for whatever companies they tick off + the data in that custom field for each?
What I'm picturing is:
A page with a view "Compare Plans"
A search drop down "post title" - but this is what I'm not seeing. I see a search box where they can type in a search term which will search post title/content, but how do I get it to display a list of Post Titles to then filter/search by a particular custom field? If I want a list of checkboxes where they can select as many of the checkboxes as they want, then filter by the custom field "plans" ... I'm not seeing how to do this. I don't see where/how to list the post titles as a checkbox list.
What about this:
I created a new Custom Field "Company Name" which is the same as the post title (although then has to manually typed in which seems weird, i'd prefer it was just the post title in there - can that be done dynamically?)
Ok so now they can select from a checkbox of companies.
In the view below the search, I have the field "price plans".
So they can now select from the companies and see the price plans for those companies.
What if I want to them them choose which fields they see in the view?
Ex custom fields
Price Plans
Deals
Overview
Let them select from those three fields to show all or just one or two of them in the view.
How would I do that?
> What if I want to them them choose which fields they see in the view?
> Ex custom fields
> Price Plans
> Deals
> Overview
> Let them select from those three fields to show all or just one or two of them in the view.
> How would I do that?
- To achieve this, you'll need to use some custom jQuery/JavaScript code.
Basically, your view will load all those fields to begin with, but they'll be hidden on the page load.
When the visitor will check options for the specific fields, only then those specific fields will become visible.
I don't have a copy/paste code snippet available for this functionality. But for more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/