Skip to content

Commit 381720b

Browse files
committed
Completed the explanation as suggested by Ryan
1 parent 5bc5969 commit 381720b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/forms/types/choice.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ The ``status`` field created by the code above will be rendered as:
132132
<option value="2">Almost empty</option>
133133
</select>
134134

135+
But don't be confused! If ``Full`` is selected (value ``0`` in HTML), ``1`` will
136+
be returned in your form. If ``Almost empty`` is selected (value ``2`` in HTML),
137+
``0.1`` will be returned.
138+
135139
.. include:: /reference/forms/types/options/empty_value.rst.inc
136140

137141
.. include:: /reference/forms/types/options/expanded.rst.inc

0 commit comments

Comments
 (0)