3

I've an input text field and with a simple AJAX, my user insert 2 or 3 letters and get the occurence from my entity. How to add an entity in a input text field as an autocomplete with Symfony2 ? Thanks for your help.

1 Answer 1

9

You can try GenemuFormBundle which has an interface to jQuery UI autocomplete. You can have a look at documentation here: https://github.com/genemu/GenemuFormBundle/blob/master/Resources/doc/jquery/autocomplete/index.md

Sign up to request clarification or add additional context in comments.

1 Comment

Be aware that although this bundle looks look and works OK - in the background its still making a query to the table and loading the entire table when the form view is loaded - for big tables it will be very slow

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.