File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -699,6 +699,16 @@ 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.
711+
702712Final Thoughts
703713--------------
704714
You can’t perform that action at this time.
0 commit comments