Functions for setting or checking the validation on the form as a whole.
A f-form.form
is validated as a whole, and a summary is placed on the
form. Field errors are placed on the fields themselves.
f-form delegates validation to other validation libraries. See
f-form.validation.vlad
for more information about validating with
vlad.
Functions for setting or checking the validation on the form as a whole. A [[f-form.form]] is validated as a whole, and a summary is placed on the form. Field errors are placed on the fields themselves. f-form delegates validation to other validation libraries. See [[f-form.validation.vlad]] for more information about validating with [vlad](https://github.com/logaan/vlad).
(invalid? form)
Check whether the form
has some validation errors.
Check whether the `form` has some validation errors.
(set-valid form valid?)
The integration point for validation libraries. Any external validation
system should call this when a form becomes valid or invalid. See
f-form.validation.vlad/validate
for an example.
The integration point for validation libraries. Any external validation system should call this when a form becomes valid or invalid. See [[f-form.validation.vlad/validate]] for an example.
(valid? form)
Check whether the form
has no validation errors.
Check whether the `form` has no validation errors.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close