FriendlyCaptcha / friendly-captcha-wordpress

WordPress plugin for Friendly Captcha. Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
https://friendlycaptcha.com
19 stars 9 forks source link

Reset widgets after submission in contact form 7, WPForms & Elementor #115

Closed merlinfuchs closed 4 months ago

merlinfuchs commented 6 months ago

Reset the widget after the form has been submitted (both successful or unsuccessful) so users can submit again. This was requested by customers because users were having problems resubmitting a form after the field validation has failed because the FC solution has already been used.

The script used for elementor can potentially used for any form plugin that doesn't prevent the default submit event. (wpforms does prevent it) I only tested it with elementor and it might somehow break other form plugins tho

I'm not entirely sure if this should be default behavior or opt in as it might lead to more spam submissions. What do you think @gzuidhof?

merlinfuchs commented 4 months ago

I will merge this now and mint a new release. If we get requests because of the changed behavior we can introduce a setting to disable this.