Skip to content

Commit

Permalink
Completed the explanation as suggested by Ryan
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 23, 2015
1 parent 5bc5969 commit 381720b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ The ``status`` field created by the code above will be rendered as:
<option value="2">Almost empty</option>
</select>

But don't be confused! If ``Full`` is selected (value ``0`` in HTML), ``1`` will
be returned in your form. If ``Almost empty`` is selected (value ``2`` in HTML),
``0.1`` will be returned.

.. include:: /reference/forms/types/options/empty_value.rst.inc

.. include:: /reference/forms/types/options/expanded.rst.inc
Expand Down

0 comments on commit 381720b

Please sign in to comment.