-
if I have 2 forms on the same page & I want to have only 1 submit button at the bottom. how do i trigger the validations on both forms, before I take any saving action?
|
Beta Was this translation helpful? Give feedback.
Answered by
x0k
Jun 2, 2025
Replies: 2 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
import { groupErrors } from "@sjsf/form";
...
form.errors = groupErrors(validator.validateFormValue(schema, form.value)); Explanation: I decided to remove the
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
x0k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explanation: I decided to remove the
validate
andvalidateAsync
methods because they:form.validation
functionality