View Source Phoenix.HTML.FormField (Phoenix.HTML v3.3.0)
The struct returned by form[field]
.
It has the following fields:
:errors
- a list of errors belonging to the field:field
- the field name as an atom:form
- the parentform
struct:id
- theid
to be used as form input as a string:name
- thename
to be used as form input as a string:value
- the value for the input