Skip to content
Merged
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,12 @@ the choice is ultimately up to you.

$form->get('agreeTerms')->setData(true);


.. note::
A form name is generated from the type class name, if you want to set it
explicitly, use :method:`FormFactoryInterface::createNamed() <Symfony\\Component\\Form\\FormFactoryInterface>`.
You can even suppress the name completely by setting it to an empty string.

Final Thoughts
--------------

Expand Down