We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Once determined spammers know that the hidden field is there, they tell their bots not to fill it in.
    The best spam-proofing by far is a math equation.

    If it's a simple contact form, check out SPForm (with the mathstring option).

    If not, you can implement the MODX Captcha plugin for any form. You can look at the SPForm code to see how it's done - set Captcha's mathstring system setting.


    ------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using.
    MODX info for everyone: http://bobsguides.com/modx.html
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 14214
      • 299 Posts
      Aside from the hidden field anything we can do, maybe through a small java script requiring the functionality a physical "click"?
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Check the "spform" extra; it employs all of the know methods, including the javascript for requiring keyboard action.
          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
          • 14214
          • 299 Posts
          Thanks Susan, I will look into spform this morning.
            • 14214
            • 299 Posts
            From a high-level look, it appears that some of my custom fields and functions will not work wit SPForm unless I spend a lot of time customizing. I will keep looking though...
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              What I had in mind was examining how it handles the various methods of spam-proofing. The method I use with eForm (I use a function and the &eFormOnValidate event) came from spform's code.
                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
                • 14214
                • 299 Posts
                A while back, I had implemented that trick you shared with me on my Evo sites. However, I have a Revo site I am working on and the validate function isn't working nor is the :empty.