EngageSoftware/elm-engage-common/8.0.0

NOTE: the latest version is 8.2.10

Engage.Custom.Form

Custom.Form

allFields : Form -> List FieldData

Get all fields of the Form

completedView : Config msg -> Form -> Html msg

Get the completed view

{ a
| formId : Int
, sectionId : Int
, fieldGroupId : Int
, fieldId : Int
}
-> Form
-> Maybe FieldData

Field a Form field

formView : Config msg -> Form -> Html msg

Get the form view

isValid : Form -> Bool

Check if the Form is valid

update : Query a -> (Field -> Field) -> Form -> Form

Update a Form field

updateFileEntryData : Query a -> (FileEntryData -> FileEntryData) -> Form -> Form

Update a Form FileEntryData

validate : { a | fieldId : Int } -> Form -> Form

Validate a Form

validateAll : Form -> Form

Validate all fields

view : Config msg -> Form -> Html msg

Get the view