Forums › Forums › Search & Filter Pro › Linking SF fields to images/icons etc..
- This topic has 8 replies, 3 voices, and was last updated 8 years, 9 months ago by Trevor.
-
Anonymous(Private) March 11, 2016 at 11:19 pm #39256
Hello,
I am trying to have an image/button/icon trigger a search result (just like the checkbox does).
I have done this succesfully just using the link, but it loads the page rather then using AJAX like the rest of the system does.
Please help me achieve this.
thanks
Ross Moderator(Private) March 17, 2016 at 9:44 am #39636Hi Amy
How are you trying to do this? Are you just creating regular hyperlinks which you would like to be loaded with Ajax?
Thanks
Trevor(Private) March 22, 2016 at 9:02 am #40109Hi Amy
What you want can be done, in a different way. Instead of creating hyperlinks, you need to create buttons, and these would need to update a hidden (with css) search field and then trigger the form to submit, which would cause the ajax to refresh the results. That somewhat depends on coding skills of course. The js would be fairly simple.
Anonymous(Private) March 23, 2016 at 7:29 pm #40420ok that makes sense. Where would I need to look to see examples on the JS part?
To give you a better Idea…. I have a row of 7 icon boxes that I want to trigger different results for. Would each button need to have a SF form (hidden), or just one form for the row?
Trevor(Private) March 23, 2016 at 7:47 pm #40421It rather depends what the search is. For example, let us say I was searching categories for a post type, each button representing a different category, then there is only one search field; category, and all you are doing is setting one field in a single form. It might be easier to discuss this, if you are OK with speaking English, over skype. I will send a second message marked as private with my details.
-
AuthorPosts