createForm returns the stores it uses to handle your form. These stores are
A writable store that contains the form's values. Depending on the field type, the values can be either a
string, an array of
File, an array of
undefined if no value has been set.
A writable store that contains the validation errors in the form. It will have the same shape as
data but containing either a
string or an array of
strings with each validation message per field.
A store that contains warnings on the form fields set by the
warn function. Unlike the
errors store, this store will have validation messages immediately and not only when a field is touched.
A writable store with the same shape as
data but containing
booleans as values, defining if the field has been touched or not.
A readable store containing a single boolean that tells if the form is valid or not.
A readable store containing a single boolean that tells if the form is submitting or not.
A writable store containing a single boolean that tells if the form is dirty or not.