client_side_validations icon indicating copy to clipboard operation
client_side_validations copied to clipboard

TypeError: Cannot read property 'validators' of undefined

Open bolshakov opened this issue 13 years ago • 5 comments

client_side_validations (3.2.1) client_side_validations-formtastic (2.2.1)

I'm getting this error while trying to submit the form:

TypeError: Cannot read property 'validators' of undefined

It happens here:

_ref = {
  'submit.ClientSideValidations': function(eventData) {
     if (!$form.isValid(form.ClientSideValidations.settings.validators)) { // <-- this one
       eventData.preventDefault();
       return eventData.stopImmediatePropagation();

bolshakov avatar Dec 18 '12 14:12 bolshakov

any luck? I am having the same issue!

nvlimbachiya avatar Aug 01 '13 18:08 nvlimbachiya

Same issue here

johnlabarge avatar Aug 16 '13 20:08 johnlabarge

Check your form_for tag and see if you are adding ID or any other html attributes in a valid way. I changed it at bunch of places and it automatically started working.

nvlimbachiya avatar Aug 16 '13 20:08 nvlimbachiya

I'm experiencing the same issue. form.ClientSideValidations.settings is undefined. Any help?

rubabzs avatar Feb 20 '17 13:02 rubabzs

@Rubab-Syed please open a new issue providing all the information required.

Ref: https://github.com/DavyJonesLocker/client_side_validations/blob/master/CONTRIBUTING.md#submitting-a-new-issue

tagliala avatar Feb 20 '17 16:02 tagliala