symfony/symfony — Issue #2507: [Form] Get form name from form view
Author: canni
Created: 2011-10-28 10:17:45+00:00
State: open

Often when you write yours view, you add some JS to forms, now we have to pass form name `$form->getName()` as an argument to twig to use something like this in JS: `$('input#{{ form_name }}_field').doSomething()`, or write input ID whole by hand.

Can we add form name to form view?