EngageSoftware / elm-engage-common / Engage.Custom.Form

Custom.Form

allFields : Engage.Custom.Types.Form -> List Engage.Custom.Field.FieldData

Get all fields of the Form

completedView : Engage.Custom.Types.Config msg -> Engage.Custom.Types.Form -> Html msg

Get the completed view

findField : { a | formId : Basics.Int, sectionId : Basics.Int, fieldGroupId : Basics.Int, fieldId : Basics.Int } -> Engage.Custom.Types.Form -> Maybe Engage.Custom.Field.FieldData

Field a Form field

formView : Engage.Custom.Types.Config msg -> Engage.Custom.Types.Form -> Html msg

Get the form view

isValid : Engage.Custom.Types.Form -> Basics.Bool

Check if the Form is valid

update : Query a -> (Engage.Custom.Types.Field -> Engage.Custom.Types.Field) -> Engage.Custom.Types.Form -> Engage.Custom.Types.Form

Update a Form field

updateFileEntryData : Query a -> (Engage.Custom.Types.FileEntryData -> Engage.Custom.Types.FileEntryData) -> Engage.Custom.Types.Form -> Engage.Custom.Types.Form

Update a Form FileEntryData

validate : { a | fieldId : Basics.Int } -> Engage.Custom.Types.Form -> Engage.Custom.Types.Form

Validate a Form

validateAll : Engage.Custom.Types.Form -> Engage.Custom.Types.Form

Validate all fields

view : Engage.Custom.Types.Config msg -> Engage.Custom.Types.Form -> Html msg

Get the view