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

I'm using Marionette, but it shouldn't make a difference as far as this question. I have two views, a `LoginView` and a `SignupView` (both forms). They are shown at the...

Hi everybody, I'm having memory leaks using Backbone.Validation.bind and unbind. If I bind a view and then, before destroy it, I unbind them: ``` class CountryEditView extends Backbone.View initialize: ->...

The current number pattern used by `Backbone.Validation` is `/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/`. Here are some tests which prove that it does not work as expected. ``` > var pattern = /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/; > "0.5".match(pattern);...

I don't know if it is (1) currently possible, (2) a possible evolution or (3) imposible by design, but is it possible to validate 2 views using the same model...

When an array of validation rules are set for an attribute, then when the validation runs on such an attribute, all validation rules/functions get examined even if one of the...

Hey there, How would you update each form input with an error class as you type? Looks like the validation only validates the whole form / model....

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.'}]...

How to validate just the one's that are set. Is there another method other than model.isValid(true) or model.validate() which would not validates the complete model. Here are some config that...

I'm not sure if this is a bug with parse, backbone, or the validation plugin. I've added a post on parse, but no responses. https://parse.com/questions/javascript-sdk-associating-parsefile-with-parseobject-causes-terminated-due-to-memory-error-in-ios-7 Any ideas?

Backbone.Validation.bind(this) causes undefined error in the ios simulator. The error appears to be random... it works fine about 50% of the time. If I run it on my iphone, it...