We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31311
    • 3 Posts
    Accessiblilty is extremely important on my website and I would like to implement some form of accessible anti-spam method for my contact form most probably a simple "2+2=?" or "is ice hot or cold?" with a text input for the answer. My coding knowledge of any languages other than XHTML and CSS is non-existant so I would be eternally grateful if someone was able to advise if it would be possible to use an accessible anti-spam method in eForm and if so provide a step by step on how to do it?

    Many thanks.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I’ve been using a "dummy" field that must remain empty for some time now, with no contact form spam at all. The field is moved off screen with CSS, and a snippet/function for eForm checks to make sure it’s empty. For accessibility you’d want to have a "this field must be left empty" message for its label. You can see it in action by logging in to my manager and looking through it. I "borrowed" the idea and the code from SPForm.
        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
        • 31311
        • 3 Posts
        Thanks for your reply, I had looked at somthing similar to that, unfortunately for the site I’m working on the client is fairly set on a question/answer type check.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Then you probably should use SPForm; it has the option of several different types of anti-spam.
            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
            • 31311
            • 3 Posts
            Although SPForm does have the option of posing a math question it does this by means of an image which results in an inaccessible check sad