Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------

Expand Down