andrewlimaza / caldera-forms-anti-spam

Caldera Forms Anti Spam WordPress plugin. This adds Google's reCAPTCHA field to your Caldera Form.
https://wordpress.org/plugins/cf-anti-spam/
25 stars 16 forks source link

Automatically reset recaptcha after XHR submission. #22

Closed bredmor closed 3 years ago

bredmor commented 4 years ago

May fix #4 as users should likely never see that error again.

ecaron commented 4 years ago

@bredmor, what are your thoughts on https://github.com/andrewlimaza/caldera-forms-anti-spam/pull/21? My logic is that a lot of the errors would be reduced if grecaptcha.execute only happens at the time the form is submitted (which lines up with Google's recommendation at https://developers.google.com/recaptcha/docs/v3)

bredmor commented 4 years ago

@ecaron Your approach looks like a better improvement to me, mine was a quick fix.