victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

reCaptcha invalidates when clicked to other fields #663

Open king2 opened 6 years ago

king2 commented 6 years ago

I have form with reCaptcha inside and toggleDisabled, and everything works OK if I click reCaptcha just before submit. But If I after this invalidate any field (for example, uncheck "I agree.." field), my submit button becomes disabled (so far so good), but when I then make this field valid again (make "I agree.." checkbox checked again) - submit button remains disabled.

This allows form to be submitted ONLY if reCaptcha will be clicked after all other fields already valid.

If I will wait until reCaptcha will expire, it wants me to click it again, after clicking on it again submit button becomes enabled.

It looks like reCaptcha status was not remembered inside validator, and reCaptcha could only be last form field to be validated.

onElementValidate callback also do not shows reCaptcha validation process.