We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9671b95 commit 9417432Copy full SHA for 9417432
form/multiple_buttons.rst
@@ -31,3 +31,10 @@ querying if the "Save and add" button was clicked::
31
32
return $this->redirectToRoute($nextAction);
33
}
34
+
35
+Or you can get the button's name by using the
36
+:method:`Symfony\\Component\\Form\\Form::getClickedButton` method of the form::
37
38
+ if ($form->getClickedButton()->getName()==='saveAndAdd')
39
40
0 commit comments