ShtumiUsefulBundle icon indicating copy to clipboard operation
ShtumiUsefulBundle copied to clipboard

SonataAdminBundle - FormMapper

Open kminhtri opened this issue 12 years ago • 4 comments

Hello,

It's possible to set an ajax autocomplete on formmaper in Admin Class? Thank you :)

kminhtri avatar Sep 27 '13 17:09 kminhtri

Hello.

What do you mean by Admin Class? SonataAdminBundle Admin Class?

shtumi avatar Sep 30 '13 07:09 shtumi

Yes in fact in the "configureFormFields" method of SonataAdminBundle Admin Class (in your example you use just for the filters "configureDatagridFilters")

kminhtri avatar Sep 30 '13 08:09 kminhtri

so sure you can use it in configureFormFields as you can use there any other symfony form element.

shtumi avatar Sep 30 '13 16:09 shtumi

Yes i saw that i'm a dummy ^^ :p Thank you But did you have an idea to set mutiple choice for the autocomplete ajax input? (I'm trying to overwrite your fields.html.twig to set the autocomplete jquery ui options, but I'm so low :p)

kminhtri avatar Sep 30 '13 16:09 kminhtri