Skip Navigation

[Resolved] Display a search result of posts with tick boxes to select those posts

This support ticket is created 7 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

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 1 reply, has 2 voices.

Last updated by Serhii Salii 7 years, 8 months ago.

Assisted by: Serhii Salii.

Author
Posts
#421458
160728174413_InventorySearch_A3.jpg

I wish to have a user search for items on a site. Once they have the search results they can then select some of the items with a tick box and then have those items sent to fields in a contact form.

The mockup of it is attached.

When they click send request I need the ticked post types to be sent to the fields of a contact form

Thanks,

David

#421470

Hello, David.
Thank you for contacting our support forum.

First part is easy. You can create a parametric search page to search over your items and show them on the page:
- https://toolset.com/documentation/user-guides/front-page-filters/
- https://toolset.com/documentation/user-guides/adding-parametric-search-wordpress-archives/

The second one needs custom programming in order to achieve what you looking for. You may try to use jQuery/Javascript to validate the button click.

For example:
Add check using jquery/Javascript that before user click on “Send Request” button it will check that if user has already selected any checkboxes or not and based on that you should display error/warning message.

More help:
- http://stackoverflow.com/questions/872296/how-to-get-a-count-of-all-checked-checkboxes-on-a-page
- hidden link

What I recommend that you do is to seek assistance from one of our toolset certified partners for this form of custom work.

https://toolset.com/consultant/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.