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 already know that there is a way to disable validation when saving by passing in the validateBeforeSave: false option, but is there a way to disable a specific validation for a field? An example would be something like I want to validate the username, but not the password.
Is there a way to do this, or is validateBeforeSave the only option?
The text was updated successfully, but these errors were encountered:
The validateSync() function supports passing a list of fields to validate, but that's more a hack than anything. No way to do that in general with save() but you can pretty easily write custom validators that skip validation given certain criteria
vkarpov15
added
the
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
label
Oct 1, 2016
I already know that there is a way to disable validation when saving by passing in the
validateBeforeSave: false
option, but is there a way to disable a specific validation for a field? An example would be something likeI want to validate the username, but not the password
.Is there a way to do this, or is
validateBeforeSave
the only option?The text was updated successfully, but these errors were encountered: