Automatically refresh a view when search field is updated

By: brett Marsh | Asked: 07/19/2024
ForumsCategory: General questionsAutomatically refresh a view when search field is updated
brett Marsh asked 2 months ago
Hi guys, I'm sure this is simple, but I'm going round in circles.  On my page I have a simple search form with 1 field (Year). When this form is submitted, it redirects to the same page, but adds the Year value to the URL as a parameter. Below this input form, I then have a view that filters based on the Year parameter in the URL. Is there a way for the View to refresh when the above Year field is updated, without the user having to press (or see) the submit button?  I'd ultimately like to have several fields that the view uses to filter from (eg Year, Car, etc) for which the View updates when any 1 of the fields is changed. Any help would be greatly appreciated! Cheers, Brett
1 Answers
Rob LeVineRob LeVine answered 2 months ago
The solution you're looking for involves some level of custom coding. In the past, I've used Datatables to display the table of data and its searchbuilder addon. See an example here.
brett Marsh replied 2 months ago

Hey Rob – Datatables looks fantastic and could potentially address a few challenges I have with handling the data on my site. Thanks for the heads up.

However, with HTML and Javascript literally being a foreign language to me, I think it would be like trying to run on ice if I was to attempt it myself.

I’ve posted twice on this forum and you’ve been kind enough to respond to both (thank you!). Can I trouble you to point me in the right direction towards finding someone I could engage and work with outside of this forum to help me take my project to the next level?

Thanks in advance, Brett

Rob LeVineRob LeVine replied 2 months ago

You can see a list of qualified developers here. I happen to be one of them.

https://formidable-masterminds.com/developers-directory/

brett Marsh replied 2 months ago

Thanks Rob! Much appreciated. I'll take a look through.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right