diff --git a/forms.rst b/forms.rst index 67768816be3..d45fdadcd51 100644 --- a/forms.rst +++ b/forms.rst @@ -703,6 +703,13 @@ the choice is ultimately up to you. $form->get('agreeTerms')->setData(true); + +.. note:: + + The form name is automatically generated from the type class name. If you want + to modify it, use the :method:`Symfony\\Component\\Form\\FormFactoryInterface::createNamed` method. + You can even suppress the name completely by setting it to an empty string. + Final Thoughts --------------