B
B
BonBon Slick2018-08-08 23:14:00
symfony
BonBon Slick, 2018-08-08 23:14:00

How to autocomplete in a form?

There is a feedback, and it is necessary to make it possible for the administrator to choose whom to bind to. The owner and who is leaving the review.
How to give such an opportunity through the symphony form component?
After all, you can’t load all users on the page, here is what this field with auto-completion most likely is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Vlastovskiy, 2018-08-09
@BonBonSlick

Symfony does not have an autocomplete field.
It is necessary to use a regular text field on the Symfony side, and convert its value to the required entity through the Data Transformer. You will also have to implement autocomplete yourself with the implementation of the AJAX controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question