Skip to content

Commit da8ac9e

Browse files
committed
minor #15956 [Form] Minor fix (sebpacz)
This PR was merged into the 4.4 branch. Discussion ---------- [Form] Minor fix <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- c9920b5 [Form] Minor fix
2 parents 6e20892 + c9920b5 commit da8ac9e

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)