Recaptcha 3 revisited

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #10034841
    ppericles
    Participant

    Hello,
    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.1
    #10034849
    Support
    Keymaster

    Hello 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.php code 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.


    #10034856
    ppericles
    Participant

    Hello,
    Did the changes, but the problem is still there.

    Pericles


    #10034857
    Support
    Keymaster

    Hello 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.


    #10034858
    ppericles
    Participant

    Hello,
    Still does not work.
    All submits return an error: Error! We not been able to add you to our email list.

    Pericles


    #10034859
    ppericles
    Participant

    Please see custom.js. Maybe we have to change the code there as well.


    #10034860
    Support
    Keymaster

    Hello 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.


    #10034862
    ppericles
    Participant

    This is awesome. It works fine!


    #10034866
    Support
    Keymaster

    Hello Pericles,

    Great!

    If you need further assistance feel free to contact us.

    Kind Regards,

    Rodrigo.


Viewing 9 posts - 1 through 9 (of 9 total)

This topic is marked as "RESOLVED" and can not rceive new replies.