Form handling for Yesod, in the same style as formlets. See the forms
chapter of the Yesod book.
This package provides a set of basic form inputs such as text, number, time,
checkbox, select, textarea, and etc. via Yesod.Form.Fields module. Also,
there is Yesod.Form.Nic module providing richtext field using Nic editor.
However, this module is grandfathered now and Nic editor is not actively
maintained since June 2012. You can find additional richtext editor fields in
yesod-form-richtext package (currently in provides
support of Summernote editor only).
Changes
ChangeLog for yesod-form
1.7.11
Add lookupRawFieldInput, giving field views access to all raw
parameter values the named field was run against — whether from a
direct submission or a runFormPRG replay. The Either Text a
argument a view receives only carries the first submitted value, so
fields rendering several inputs under one name (e.g. a composite
amount-plus-currency field) previously could not restore the user’s
input after a failed submission.
1.7.10.1
Move the runFormPRG integration tests to yesod-test’s test suite,
removing yesod-form’s test-suite dependency on yesod-test. That
dependency created a package-level cycle
(yesod-test → yesod-form → yesod-test) which broke the Stackage
build plan. #1928
1.7.10
Add runFormPRG, a runFormPost variant for the
Post/Redirect/Get pattern: failed submissions are stashed in the session
and replayed (input and validation errors) by the next GET.
#1927
1.7.9.3
Support yesod-core 1.7
1.7.9.2
Improve deprecation messages for radioField and checkboxesField#1902
Added checkboxesField' for creating checkbox in more correct way than original checkboxesField
Function checkboxesField marked as deprecated. #1843
1.7.8
Added radioField' for creating radio button in more correct way than original radioField.
Function radioField marked as deprecated. #1842
1.7.7
Added optionsFromList' to create an OptionList from a List, using the PathPiece instance for the external value and
a custom function for the user-facing value. Also added optionsEnum' to create an OptionList from an enumeration
#1828
1.7.6
Added datetimeLocalField for creating a html <input type="datetime-local">#1817