Skip Navigation

[Resolved] AJAX refresh View when text in search box changes without pressing return

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is there any way I can set a View to AJAX refresh when text in a search box changes without pressing return?

Solution:

here isn't such a built-in feature within Views plugin, I suggest you add a feature request for it:

https://toolset.com/forums/topic/ajax-refresh-view-when-text-in-search-box-changes-without-pressing-return/#post-1201614

Relevant Documentation:

This support ticket is created 5 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1201454

Ben

Is there any way I can set a View to AJAX refresh when text in a search box changes without pressing return?

At the moment I have the Custom Search Settings set as "Update the View results every time an input changes" but just typing a value into the filter search bar does nothing, I have to press return on the keyboard to facilitate the changes.

Is there any way I can achieve this automatically? Without having to press return.

#1201614

Hello,

I assume we are talking about the search box outputted from shortcode [wpv-filter-search-box].

If it is, you are right, there isn't such a built-in feature within Views plugin, I suggest you add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

#1202524

Ben

Hello Luo Yang, thank you for your response.

Yes the [wpv-filter-search-box] search box was what I was talking about, sorry I should have made myself more clear.

I have submitted a feature request for this as well.

So, to confirm, the only way to "action" filtering via text in the above mentioned search box is to either have a submit button pressed, or require the user to press return on their keyboard?

#1202781

Yes, you are right. By default, in Views custom search form:

the only way to "action" filtering via text in the above mentioned search box is to either have a submit button pressed, or require the user to press return on their keyboard

#1203981

Ben

Thank you for the confirmation and all your help with this Luo Yang!