The Form Validator validator which is the main module used to update/validate forms and fields.
init : key -> FormValidator.Models.Validators -> FormValidator.Models.Field key
Initialize a new form field.
fieldValues : key -> FormValidator.Models.Form key -> List String
Answer multiple field values.
fieldValue : key -> FormValidator.Models.Form key -> String
Answer single field value.
fieldErrors : key -> FormValidator.Models.Form key -> FormValidator.Models.Errors
Answer all errors for a field.
updateValues : key -> FormValidator.Models.Values -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Update multiple field values without validation.
updateValuesAndValidate : key -> FormValidator.Models.Values -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Update field values and validate them.
updateValue : key -> FormValidator.Models.Value -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Update single field value without validation.
updateValueAndValidate : key -> FormValidator.Models.Value -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Update field value and validate it.
resetForm : FormValidator.Models.Form key -> FormValidator.Models.Form key
Reset field values and errors for entire form to initial state.
resetField : key -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Reset field value(s) and errors to initial state.
updateAndValidateValues : key -> FormValidator.Models.Values -> FormValidator.Models.Form key -> FormValidator.Models.Form key
DEPRECATED: Will be removed in 2.0.0. Use updateValuesAndValidate
instead.
Update field values and validate them.
updateAndValidateValue : key -> FormValidator.Models.Value -> FormValidator.Models.Form key -> FormValidator.Models.Form key
DEPRECATED: Will be removed in 2.0.0. Use updateValueAndValidate
instead.
Update field value and validate it.
validateForm : FormValidator.Models.Form key -> FormValidator.Models.Form key
Validate form (including all fields).
validateField : key -> FormValidator.Models.Form key -> FormValidator.Models.Form key
Validate field.
isFormInvalid : FormValidator.Models.Form key -> Basics.Bool
Answer if form is invalid.
isFieldInvalid : key -> FormValidator.Models.Form key -> Basics.Bool
Answer if field is invalid.