Honeypot questions


(Joanne Stephenson) #1

Matrix Version: Squiz Matrix v5.3.3.0

I cannot find any actual proper instruction to apply a honeypot question, I have done advanced forms course. I read all the manuals. I read the custom form tutorial. What i need to know is:

  • What do i put in these fields

    • Field Name
    • Field Id
    • Field Class
    • Error Message
  • What do i put in the form i have the honeypot field %form_honeypot_field% but the honeypot field is still visable


#2

The Name/ID/Class/Error Message are up to you. The error message will be what anyone who manages to submit the honeypot question with an answer will see, when the form fails to submit.

You need to hide the field with CSS, The easiest thing to do is to decide on an ID or class for your form field, then use display: none; to ensure it isn’t visible.

The reason you can configure the options yourself if you wish, and have to hide the field yourself is (I imagine) because if it was too generic it wouldn’t pose much of a barrier against spam for long.

For reference: https://matrix.squiz.net/manuals/custom-form/chapters/form-contents#spam-prevention-honeypot-question


(Peter McLeod) #3

Hi
Could also set a submission time threshold in addition to the honeypot question for extra strength.
We generally use these 2 options together on most of our public facing forms.
Thanks
Peter


(Joanne Stephenson) #4

does the id need to be an asset iD of an actual question


(Joanne Stephenson) #5

thanks guys i got it working :))))