File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -699,15 +699,11 @@ the choice is ultimately up to you.
699699
700700 $form->get('agreeTerms')->setData(true);
701701
702- Rendering the Same Form Multiple Times on the Same Page
703- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
704-
705- In some situations you might find yourself in need of having the same form on
706- the same page multiple times. By default, a form name is based off the class of
707- the form type. To differentiate between the forms, you can create a form using
708- :method: `FormFactoryInterface::createNamed() <Symfony\\ Component\\ Form\\ FormFactoryInterface> `.
709- Doing so, will change the html name of the form and Symfony will be able to see
710- which of the forms was submitted, and handle it accordingly.
702+
703+ .. note ::
704+ A form name is generated from the type class name, if you want to set it
705+ explicitly, use :method: `FormFactoryInterface::createNamed() <Symfony\\ Component\\ Form\\ FormFactoryInterface> `.
706+ You can even suppress the name completely by setting it to an empty string.
711707
712708Final Thoughts
713709--------------
You can’t perform that action at this time.
0 commit comments