Skip to content

Commit 4b5a44a

Browse files
committed
[#2855] Trying to make the .first and .second sub-field names a bit more clear
1 parent 826197b commit 4b5a44a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

reference/forms/types/repeated.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ To render each field individually, use something like this:
7979

8080
.. code-block:: jinja
8181
82+
{# .first and .second may vary in your use - see the note below #}
8283
{{ form_row(form.password.first) }}
8384
{{ form_row(form.password.second) }}
8485
@@ -89,8 +90,10 @@ To render each field individually, use something like this:
8990
9091
.. note::
9192

92-
The sub-field names are ``first`` and ``second`` by default, but can
93-
be controlled via the `first_name`_ and `second_name`_ options.
93+
The names ``first`` and ``second`` are the default names for the two
94+
sub-fields. However, these names can be controlled via the `first_name`_
95+
and `second_name`_ options. If you've set these options, then use those
96+
values instead of ``first`` and ``second`` when rendering.
9497

9598
Validation
9699
~~~~~~~~~~

0 commit comments

Comments
 (0)