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
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/