penna20166
Nice plugin. I got up and running in no time. What I haven't yet figured out is how to reset the captcha once the form is successfully submitted via AJAX?
penna20166
Found it out myself. As it seems, using the component exposes a global 'grecaptcha' variable which references the object. In my form I ended up using the following AJAX data attribute in order to reset both the form and the captcha:
data-request-success="$('#form-id')[0].reset(); grecaptcha.reset();"
Last updated
1-2 of 2