Skip to content

Commit c9920b5

Browse files
authored
[Form] Minor fix
1 parent 0c9b2fa commit c9920b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/multiple_buttons.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ How to Submit a Form with Multiple Buttons
66

77
When your form contains more than one submit button, you will want to check
88
which of the buttons was clicked to adapt the program flow in your controller.
9-
To do this, add a second button with the caption "Save and add" to your form::
9+
To do this, add a second button with the caption "Save and Add" to your form::
1010

1111
$form = $this->createFormBuilder($task)
1212
->add('task', TextType::class)
@@ -17,7 +17,7 @@ To do this, add a second button with the caption "Save and add" to your form::
1717

1818
In your controller, use the button's
1919
:method:`Symfony\\Component\\Form\\ClickableInterface::isClicked` method for
20-
querying if the "Save and add" button was clicked::
20+
querying if the "Save and Add" button was clicked::
2121

2222
if ($form->isSubmitted() && $form->isValid()) {
2323
// ... perform some action, such as saving the task to the database

0 commit comments

Comments
 (0)