We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • So I recently created a simple lead form. As part of the form to protect against Spam I opted to use the recaptchav2 hook. However what I am experiencing is that when the hook is used the form will not submit. When I remove the hook it will. Now Recaptcha is rendering and appears to be functioning, the site key and secret key have been added. So is this a glitch with the hook, a limitation of Revo 2.4.2? Any help would be great.

    FormIt Call:

    [[!FormIt?
       &hooks=`recaptchav2,spam,email,redirect`
       &emailTpl=`leademailTpl`
       &emailTo=`****[email protected],***[email protected]`
       &emailToName=`Sales Team`
       &validate=`workemail:blank,name:required,phone:required,message:required`
       &redirectTo=`2`
       &spamCheckIp=`1`
       &spamEmailFields=`email`
    ]]


    Form
    <div class="form-johann">
    <div class="row text-center"><h4><span class="orange">GET A QUOTE &#149; SCHEDULE YOUR SERVICE EMERGENCY SERVICE AVAILABLE</span></h4></div>
    <div>
    <form action="[[~[[*id]]]]" method="post">
    <input type="hidden" name="workemail" value="" />    
    <input class="col-md-12" type="text" id="name" name="name" placeholder="Name*" required/>
    <input class="col-md-12" type="text" id="email" name="email" placeholder="Email"/>
    <input class="col-md-12" type="text" id="phone" name="phone" placeholder="Phone*" required />
    <label class="col-md-8">Is Your System Working Properly?</label>
    <input type="checkbox" name="ACStatus[]" value="Working Properly" [[!+fi.ACStatus:FormItIsChecked=`Working Properly`]] > Yes 
    <input type="checkbox" name="ACStatus[]" value="It is Not Working Properly" [[!+fi.ACStatus:FormItIsChecked=`It is Not Working Properly`]] > No 
    <textarea class="col-md-12" name="message" placeholder="Message*" required></textarea>
    <div class="form-item">
    
        [[!recaptchav2_render]]
    
        [[!+fi.error.recaptchav2_error]]
    
    </div>
    <input type="submit" value="BOOK YOUR SERVICE NOW!" name="leadsubmit" />
    </form>
    </div>
    
    
    </div>



    Link to Test Page: https://alfordac.com/form-test-page.html
    • I've seen other posts with similar problems with Captcha. I've never looked into it because personally I despise Captcha. I've abandoned many a shopping cart, site registration or other form because I dislike them so much.

      I use the Math hook for my FormIt forms, and have never had a problem with it.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • Susan,

        I complete understand your stands, however I have found as of late several instances where spam bots are getting around math. The new Google Recaptcha from a user experience is significantly better then previous versions Captcha.
        • Hm. I see your point - as have others https://github.com/Sterc/FormIt/issues/64

            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org