Skip to content

Commit e4c3795

Browse files
committed
add form name caution to choice_name option
1 parent 411e9d2 commit e4c3795

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)