You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The normal parsley-validation during input like "must be a valid email-address" still works. But the submit-validation of parsley which prevents submission of the form is required fields are missing doesn't work for me once invisiblerecaptcha is installed. It seems the validation is triggered, but even if it fails the captcha-validation kicks in, verifies the captcha is fine and submits the form. Missing required-fields are then only detected by the server-side validation of powermail 5.x.
The text was updated successfully, but these errors were encountered:
To make html5 & parsley validation work you could replace the default button in Invisiblerecaptcha.html with the following. <div class="g-recaptcha" data-sitekey="{settings.invisiblerecaptcha.sitekey}" data-size="invisible"> </div>
You need to add another regular submit button to the form. This submit button will trigger regular form submission so recaptcha must be triggered on form submit manually: jQuery('form.powermail_form').submit(function(){ if(typeof(grecaptcha) === 'object'){ grecaptcha.execute(); } });
The normal parsley-validation during input like "must be a valid email-address" still works. But the submit-validation of parsley which prevents submission of the form is required fields are missing doesn't work for me once invisiblerecaptcha is installed. It seems the validation is triggered, but even if it fails the captcha-validation kicks in, verifies the captcha is fine and submits the form. Missing required-fields are then only detected by the server-side validation of powermail 5.x.
The text was updated successfully, but these errors were encountered: