Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › 2 field search, 1 button :)
This topic contains 2 replies, has 2 voices, and was last updated by zviz 4 years, 3 months ago.
- AuthorPosts
- March 7, 2019 at 12:48 pm #21482
Hi there
I’m using the plugin for the first time and i love it ?
I’ve been asked to build a search that i’m having a bit trouble with, and hoped your tool would be up to the task.the thing is that we need it to have two adjacent search fields (one for a CPT and the other for a page category) and both fields should be using 1 search button.
you can see the fields in the homepage, right after the video.
I’ve attached an image that shows how it should look likeI’ve tried to search the documentation thoroughly and played with the settings quite a lot, but didn’t figure out a way to do so.
hope you can help
thanks
ZviAttachments:
You must be logged in to view attached files.March 7, 2019 at 3:35 pm #21489Hi,
I’m afraid this is not possible, as two separate search fields cannot be connected or triggered with a single button. You can for example enable the search button on one of the fields, and disable on the other one.
One possibility could be, to add a custom button via a page builder (maybe visual composer or something else), and the add a custom JS function to that button. The plugin has a javascript API, so it can be used to trigger both searches. If this code is exectued on button click, it would automatically trigger both searches:
Best,ASP.api(7, 'searchFor'); ASP.api(8, 'searchFor');
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 7, 2019 at 4:25 pm #21494Thanks, i’ll look into that solution.
- AuthorPosts
You must be logged in to reply to this topic.