Defined in: FormApi/FormApi.public.ts:25
Current form values, validation status, and submission metadata.
Read the state through formApi.state, or subscribe to formApi.atom to observe changes.
TFormData
Library-managed. Do not specify explicitly.
TFormError extends ScopedErrorTypes
Library-managed. Do not specify explicitly.
canSubmit: boolean;Defined in: FormApi/FormApi.public.ts:97
Whether the form has no stored validation errors and no submission is in progress. Equivalent to isValid && !isSubmitting.
Important: formApi.handleSubmit() remains callable when this is false. Submission runs all field and form validators by default unless they set skipOnSubmit.
errors: FormError<TFormError>[];Defined in: FormApi/FormApi.public.ts:70
Form-level validation issues from form validators and onSubmit.
isDefaultValue: boolean;Defined in: FormApi/FormApi.public.ts:62
Whether current values deeply equal formApi.defaultValues.
Returning values to their defaults makes this true even when isDirty remains true.
isDirty: boolean;Defined in: FormApi/FormApi.public.ts:49
Whether a value update has marked the form dirty.
isInvalid: boolean;Defined in: FormApi/FormApi.public.ts:85
Whether the form, a field, or a form group has a stored validation error. Equivalent to !isValid.
Field errorVisibility does not affect this flag.
isPristine: boolean;Defined in: FormApi/FormApi.public.ts:55
Whether the form has not been marked dirty. Equivalent to !isDirty.
Use isDefaultValue to compare current values with their defaults.
isSubmitSuccessful: boolean;Defined in: FormApi/FormApi.public.ts:115
Whether the last completed form submission succeeded.
Success requires validation to pass and onSubmit to finish without validation errors or exceptions.
isSubmitting: boolean;Defined in: FormApi/FormApi.public.ts:104
Whether a form submission is in progress.
This includes validation and waiting for onSubmit or onSubmitInvalid to finish.
isTouched: boolean;Defined in: FormApi/FormApi.public.ts:40
Whether at least one field is touched.
isValid: boolean;Defined in: FormApi/FormApi.public.ts:78
Whether the form, its fields, and its form groups have no stored validation errors. Equivalent to !isInvalid.
isValidating: boolean;Defined in: FormApi/FormApi.public.ts:122
Whether any form, form group, or field validation is pending.
This remains true until all pending validation finishes or is canceled. Pending validation alone does not make canSubmit false.
submissionAttempts: number;Defined in: FormApi/FormApi.public.ts:131
Number of form submission attempts recorded, including failed or canceled attempts.
values: TFormData;Defined in: FormApi/FormApi.public.ts:32
The current values of the form.