backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

A validation plugin for Backbone.js that validates both your model as well as form input

Results 82 backbone.validation issues
Sort by recently updated
recently updated
newest added

My model looks like this: Activity - Id - CategoryIds [] - Name - Task - Id - CategoryIds['vacation'] When I call model.validate(), I get the following error: Uncaught TypeError:...

I have a situation where a user might be signing up for him/herself + guests, which creates multiple fields with the same field name. It would be nice if we...

I recently attempted to use isValid as specified in the docs > If you pass the name of an attribute or an array of names, you can check whether or...

In current implemenation of the plugin, we can only perform synchronous validations on model attributes. But in many cases, certain model fields need a basic client side validation (synchronous: well...

Hi When the validation is running on a new model with unchanged attributes the validation isnt applied correctly. When I debug `validate` i can see all correct errors in result.invalidAttrs...

bug

This allows the label to be dynamically computed when generating the error message, possibly based on user preferences. The issue is described in more depth in #295

Hello! This is a question regarding `Backbone.Validation.bind` and passing the `labelFormatter` option to it. Suppose I specify this formatting option in `Backbone.Validation.bind`: `Backbone.Validation.bind(this, { labelFormatter: 'label' });` Despite `label` being...

The other questions that are similar to this one don't seem to address this; forgive me if I'm misunderstanding. If I have a `User` model and a `login` view as...

feature

I have 2 views bound to the same model where I want to set different options to each validation binding. Specifically I want to use different validation callbacks since I...