Open soerenmartius opened 10 years ago
Hey, in Sf 2.3 i have a form
public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->setMethod('POST') ->setAction($this->router->generate('applypie_search')) ->add('query', 'genemu_jqueryautocompleter_entity', array( 'route_name' => 'applypie_ajax_header_search_autocomplete', 'class' => 'Applypie\Bundle\PositionBundle\Entity\Position', )) ->add('search', 'submit', array( 'attr' => array( 'class' => 'appie-search-btn ' ), 'label' => 'Absenden' )) ; }
Whatever, the autocomplete function works great but if i submit the form field the Query field is always empty
die(var_dump($form->getData()->getQuery()));
always returns null.. if i switch the form field from genemu_jqueryautocompleter_entity to textm it works great.
Any Idea?
Hey, in Sf 2.3 i have a form
Whatever, the autocomplete function works great but if i submit the form field the Query field is always empty
always returns null.. if i switch the form field from genemu_jqueryautocompleter_entity to textm it works great.
Any Idea?