We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53400
    • 4 Posts
    spidermontano Reply #1, 7 years ago
    Hello, I'm very new to Modx, I have very little experience with the platform.

    My website recently got a bunch of spam emails and I'm trying to installed ReCaptcha to avoid that from happening again.

    It looks like I already have Formit, I see it under Chunks and I see it under Snippets, not sure if that's a mistake, if I need to get rid of one of those or not. I have the Google Recaptcha keys, but I do not know where to plug them in.

    Thank you so much for your help in advance.
      • 17301
      • 932 Posts
      Your api keys are put into system settings.

        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 17301
        • 932 Posts
        To go into a little more detail about the process:

        You'll need to include the hook also into your formit call. I'm going to assume you're using recaptchav2 rather than just recaptcha(v1).

        &hooks=`recaptchav2` 


        You'll then need to call in recaptchav2 just before the submit button:

        [[!recaptchav2_render]]
        [[!+fi.error.recaptchav2_error]]


          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 53400
          • 4 Posts
          spidermontano Reply #4, 7 years ago
          Quote from: lkfranklin at Apr 25, 2017, 07:03 AM
          Your api keys are put into system settings.


          So I check my system settings, I see the following:

          formit.user_email
          formit.user_name

          Under settings...Do I need to create a new setting to ad the api keys?

          I understand I need to ad the recaptcha as hooks in the form before the submit button, do I need to ad the api keys on the form too?
            • 17301
            • 932 Posts
            You need to select recaptchav2 from the dropdown list in system settings. Take a look here for clarifcation smiley

            http://imgur.com/a/5N0vG
              ■ email: [email protected] | ■ website: https://alienbuild.uk

              The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.