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 @@ -702,6 +702,16 @@ the choice is ultimately up to you.
702
702
703
703
$form->get('dueDate')->setData(new \DateTime());
704
704
705
+ Rendering the Same Form Multiple Times on the Same Page
706
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
707
+
708
+ In some situations you might find yourself in need of having the same form on
709
+ the same page multiple times. By default, a form name is based off the class of
710
+ the form type. To differentiate between the forms, you can create a form using
711
+ :method: `FormFactoryInterface::createNamed() <Symfony\\ Component\\ Form\\ FormFactoryInterface> `.
712
+ Doing so, will change the html name of the form and Symfony will be able to see
713
+ which of the forms was submitted, and handle it accordingly.
714
+
705
715
Final Thoughts
706
716
--------------
707
717
You can’t perform that action at this time.
0 commit comments