8000 [Form] Fix #9325 · symfony/symfony-docs@d945ba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d945ba2

Browse files
committed
[Form] Fix #9325
1 parent cedfdce commit d945ba2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

reference/forms/types/password.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ The ``password`` field renders an input password text box.
99
+-------------+------------------------------------------------------------------------+
1010
| Rendered as | ``input`` ``password`` field |
1111
+-------------+------------------------------------------------------------------------+
12-
| Options | - `always_empty`_ |
12+
| Options | - `always_empty`_ (deprecated as of 2.6) |
13+
| | - `reset_on_submit`_ |
1314
+-------------+------------------------------------------------------------------------+
1415
| Inherited | - `max_length`_ (deprecated as of 2.5) |
1516
| options | - `empty_data`_ |
@@ -34,6 +35,14 @@ Field Options
3435
always_empty
3536
~~~~~~~~~~~~
3637

38+
.. caution::
39+
40+
The ``_always_empty`` option has been deprecated and will be removed in 3.0.
41+
Instead, use the ``reset_on_submit`` option.
42+
43+
reset_on_submit
44+
~~~~~~~~~~~~
45+
3746
**type**: ``Boolean`` **default**: ``true``
3847

3948
If set to true, the field will *always* render blank, even if the corresponding

0 commit comments

Comments
 (0)
0