PUGX / PUGXAutoCompleterBundle

Add an autocomplete field to your Symfony forms
GNU Lesser General Public License v3.0
93 stars 38 forks source link

Small (I suppose) request #6

Closed pierma67 closed 9 years ago

pierma67 commented 9 years ago

Hello Garak! I'd really like to have some hook so that I can fire a function I'd pass to it if the user tries to submit a form without a valid entity in this field. This could be useful in two cases: 1- if the default can be 'null' [I didn't try it in this way, though] 2- to give the user a chance to "create" the related entity with a popup form

TYVM

PS: Massimiliano, sono Piermaria della Gilda, ti ricordi di me vero?

pierma67 commented 9 years ago

Oh, found it - it is sufficient to check the val() of the field in submit event and then retrieve val() of the fake field to present it in the popup form. :-)