You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an object to validate that I build in several steps (step 1, step 2 ...) and in one of the steps there is drag and drop on several dynamic elements and forms in modals which make the use of classic forms very difficult.
All this to say that I validate an object and not a form
my object is built well with empty fields and it is filled if the user does actions ....
at the time of validation I use { abortEarly: false } (to have all the error messages) but unfortunately I only receive the first error message, and I have to correct what's wrong to get the next error message
I read @jquense's answers everywhere where he explains that abortEarly does not mean to execute the validations in parallel and return the result as soon as possible, but rather to wait for the validation to be finished to have a result
When I click on my button, my object is ready for validation and I do not know what to do to display all the messages to the user at once
Help Others Reproduce
It is too hard to create a sandbox as I need to copy many components to work correctly, as I said there is a drag and drop events and modal forms
I don't really know what you are asking about here, there isn't really a specific issue demonstrated that I can tell sorry. Schema look fine if your getting different results it might be due to the code calling the schema
I have an object to validate that I build in several steps (step 1, step 2 ...) and in one of the steps there is drag and drop on several dynamic elements and forms in modals which make the use of classic forms very difficult.
All this to say that I validate an object and not a form
my object is built well with empty fields and it is filled if the user does actions ....
at the time of validation I use { abortEarly: false } (to have all the error messages) but unfortunately I only receive the first error message, and I have to correct what's wrong to get the next error message
I read @jquense's answers everywhere where he explains that abortEarly does not mean to execute the validations in parallel and return the result as soon as possible, but rather to wait for the validation to be finished to have a result
When I click on my button, my object is ready for validation and I do not know what to do to display all the messages to the user at once
Help Others Reproduce
It is too hard to create a sandbox as I need to copy many components to work correctly, as I said there is a drag and drop events and modal forms
Here is my validation callback
And here is my yupSecondStepSchema
I confirm that the first time I get
['days[0].sessions[0].hour is a required field']
I must set hour to session to get
['days[0].sessions[0].sets field must have at least 1 items']
My Object structure :
Any help will be a pleasure
The text was updated successfully, but these errors were encountered: