Skip to content

Commit 8a10de0

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: add form name caution to choice_name option
2 parents a58fe2b + 2071b0d commit 8a10de0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/forms/types/options/choice_name.rst.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ of the choice views in the template.
99
1010
This can be a callable or a property path. See `choice_label`_ for similar usage.
1111
If ``null`` is used, an incrementing integer is used as the name.
12+
13+
.. caution::
14+
15+
The configured value must be a valid form name. Make sure to only return
16+
valid names when using a callable. Valid form names must be composed of
17+
letters, digits, underscores, dashes and colons and must not start with
18+
a dash or a colon.

0 commit comments

Comments
 (0)