- This topic has 8 replies, 2 voices, and was last updated 5 years, 10 months ago by
Support. This post has been viewed 1681 times
-
AuthorPosts
-
October 22, 2020 at 6:37 am #10034841
ppericles
ParticipantHello,
I am trying to use Recaptcha 3 for my newsletter form, but when I press the submit button nothing happens.Any ideas?
Thanks,
Pericles
Template Version: 8.1October 22, 2020 at 11:23 pm #10034849Support
KeymasterHello Pericles,
The newsletter form is not ready to use with recaptcha scripts. This case we need some steps:
At really you can maintain your website code as it is now and just change the
newsletter-subscribe.phpcode to this new:
https://pastebin.com/raw/4Uv2gEt1* Change the mailchimp and recaptcha API keys to yours.
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
October 22, 2020 at 11:50 pm #10034856ppericles
ParticipantHello,
Did the changes, but the problem is still there.Pericles
October 23, 2020 at 12:01 am #10034857Support
KeymasterHello Pericles,
Please try removing this part of code:

And add these new success and error messages below just after/inside the contact form. For example:
... ..... .......... <form class="contact-form-recaptcha-v3 custom-form-style" action="php/newsletter-subscribe.php" method="POST"> <div class="contact-form-success alert alert-success d-none mt-4"> <strong>Success!</strong> You've been added to our email list. </div> <div class="contact-form-error alert alert-danger d-none mt-4"> <strong>Error!</strong> We not been able to add you to our email list. <span class="mail-error-message text-1 d-block"></span> </div> .... ...... ..........
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
October 23, 2020 at 12:25 am #10034858ppericles
ParticipantHello,
Still does not work.
All submits return an error: Error! We not been able to add you to our email list.Pericles
October 23, 2020 at 12:40 am #10034859ppericles
ParticipantPlease see custom.js. Maybe we have to change the code there as well.
October 23, 2020 at 12:43 am #10034860Support
KeymasterHello Pericles,
We are almost there! Now the form it’s working (you can see my tests in your mailchimp account).
The problem now is the success and error messages that are not returning properly.
This is because was missing a code in my previous PHP code for you (sorry). Please try with this new:
https://pastebin.com/raw/WLKzL7fJ
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
October 23, 2020 at 12:57 am #10034862ppericles
ParticipantThis is awesome. It works fine!
October 23, 2020 at 6:03 am #10034866Support
KeymasterHello Pericles,
Great!
If you need further assistance feel free to contact us.
Kind Regards,
Rodrigo.
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.