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
User has a form with some validations, these validations errors are not shown because we don't fire them til the user interacts with the inputs (touched).
If the user click on the submit option, the validation form will be fired, but the error messages per field won't be updated.
When we are going to validate a form and we want to get fieldErrors, i.e in React, we have to :
We could create a method helper to encapsulate this mapping, something like :
Pseudocode:
On future lc-form-validation versions we could return this
"objectWithFields"
directly onformValidationResult.fieldErrors
The text was updated successfully, but these errors were encountered: