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 want validate single attribute at a time atleast in save function. means If username found invalid, then it return error and don't go for password validation, and this will come under some option/settings.
Thanks.
The text was updated successfully, but these errors were encountered:
I have one model with 2 attributes as follows.
Backbone.Model.extend({
validation: {
username: [
{required: true, msg: 'Enter email/username.'},
],
password: [
{required: true,msg: 'Enter password.'},
{minLength:20,msg: 'Incorrect password length.'}]
},
});
I want validate single attribute at a time atleast in save function. means If username found invalid, then it return error and don't go for password validation, and this will come under some option/settings.
Thanks.
The text was updated successfully, but these errors were encountered: