bozdoz / wp-plugin-recaptcha-jetpack

Google reCAPTCHA add-on for the Jetpack Plugin
https://wordpress.org/plugins/recaptcha-jetpack/
GNU General Public License v2.0
2 stars 3 forks source link

Keep form contents on failed CAPTCHA #8

Open KevWal opened 4 years ago

KevWal commented 4 years ago

Hi Bozdoz

Thanks for the great plugin, but unfortunately in my testing, if the user forgets to tick the CAPTCHA box, then the contact us form content is removed, not giving the user another chance to submit and needing them to resubmit all of their comments?

bozdoz commented 4 years ago

By default, I believe you are correct. It's a standard HTML form which navigates to a new page. It's not done over ajax. I'm not sure how Jetpack itself might handle that; I believe by default there is no server-side validation. With this plugin, it is doing server-side validation. Does that all make sense?

KevWal commented 4 years ago

Thanks Bozdoz, I think I understand that - your saying there is nothing you can do about it in your code as the way the Jetpack form works doesn't give you any other choices? If so, thanks for thinking about it and responding.

bozdoz commented 4 years ago

I mean, there may be some other way of configuring it; but at least by default that's how it works, yes.