Skip to content

Commit acdd7ad

Browse files
committed
feature #7234 Added a note about formaction and formmethod attributes (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Added a note about formaction and formmethod attributes This fixes #7233. Commits ------- 0f65b0c Added a note about formaction and formmethod attributes
2 parents 5b619c9 + 0f65b0c commit acdd7ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/dom_crawler.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,12 @@ than just return the ``action`` attribute of the form. If the form method
415415
is GET, then it mimics the browser's behavior and returns the ``action``
416416
attribute followed by a query string of all of the form's values.
417417

418+
.. versionadded:: 3.3
419+
Starting from Symfony 3.3, the optional ``formaction`` and ``formmethod``
420+
button attributes are supported. The ``getUri()`` and ``getMethod()``
421+
methods take into account those attributes to always return the right action
422+
and method depending on the button used to get the form.
423+
418424
You can virtually set and get values on the form::
419425

420426
// set values on the form internally

0 commit comments

Comments
 (0)