How to set custom errors from thrid party in to Tanstack form and field level and show them on page #1124
Unanswered
karthikMNK
asked this question in
Q&A
Replies: 1 comment
-
Dear @crutchcorn @Balastrong I am using React with Remix & Yup. is there any way the end user can get his errors and error paths from any where and these below can work as mentioned
this helps a lot is this possible as of now with the current API. Please help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @crutchcorn @Balastrong
I am validating the form data using yup schema .I am getting Yup Validation errors.
I am setting them into form and field meta but they are not coming on the page.
Can anyone help me
try {
// Create a nested structure for validation context
const validationContext = {
familyHistory: form.state.values.familyHistory,
};
}catch (error: any) {
const errorMap = this.extractPathAndErrors(error as YupValidationError);
}
Beta Was this translation helpful? Give feedback.
All reactions