0

I have a view with exposed filters using AJAX and auto-submit feature.

The problem is it reacts to every char I type but what I want is that when a user type at least three character in the text field then it should auto submit and display search result. But Cant figure out how to implement this. Please help

  • It's not clear, how many ajax request should be send if you type 6 chars? (2, after 3 and after 6 char, or 4 after 3, 4, 5 and 6 char) – kala4ek Aug 19 '15 at 6:39
  • @kala4ek If I type 6 chars it should send 4 ajax request. say If I search for drupal, It sould send ajax request for (dru, drup, drupa, drupal) – Md Eqbal Ahmad Aug 19 '15 at 6:45
0
  • Attach custom_form_validate for that form using form_alter
  • Do what ever you want in this custom_validation.
  • Reference

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.