I've a form and I want to submit it from an link. Something like :
<form action="{{ path('update', { 'id': entity.id }) }}" id="update" method="post" {{ form_enctype(edit_form) }}>
{{ form_widget(edit_form) }}
</form>
... some HTML
<a href="javascript:$('#update').submit();">Valid</a>
But when I submit the form using this link, the form is not validated in Javascript (check empty fields etc...) and don't display error tooltips
If I create a button in the form tag, it works, but i want this button outside of the form tag.
How can I do this ?
edit : My form is in a modal dialog.