Skip to content

Commit f6dd678

Browse files
committed
feature symfony#3548 Update forms.rst (atmosf3ar)
This PR was merged into the 2.3 branch. Discussion ---------- Update forms.rst Hi there, I thought it would be nice to specify that you can set a label to false to disable it. I needed it for a project, couldn't find it in the doc, and had to search through a couple of stackoverflow posts to find the solution. Commits ------- fb5f12d Update forms.rst 3116b39 Update forms.rst 95b4d40 Update forms.rst
2 parents 6e32c47 + fb5f12d commit f6dd678

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/forms.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ the documentation for each type.
645645
))
646646

647647
The label for a field can also be set in the template rendering the
648-
form, see below.
648+
form, see below. If you don't need a label associated to your input,
649+
you can disable it by setting its value to ``false``.
649650

650651
.. index::
651652
single: Forms; Field type guessing

0 commit comments

Comments
 (0)