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?
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.
:-)
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?