TypeError: Cannot read property 'validators' of undefined
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();
any luck? I am having the same issue!
Same issue here
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.
I'm experiencing the same issue. form.ClientSideValidations.settings is undefined. Any help?
@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