The Must be Empty rule is recommended to be used on fields which are hidden to stop spam, although the rule only works on components that are textfields.
There is a component in Webform called hidden that allows a hidden text field, so why can't this rule be used on such fields.

Comments

b-prod’s picture

Category: bug » feature
Status: Active » Needs review
StatusFileSize
new1.22 KB

I agree with that, I use an empty hidden input "mail" for a while and it works for most of spamming cases. It filtered spammed contact forms better than I thought.
So the patch below allows to use hidden fields for "must be empty" validation. Il is more simple than use a textfield and hide it within CSS rules.

svendecabooter’s picture

Status: Needs review » Fixed

The "Must be empty" validation rule can now be applied to hidden components.
Although I think spambots still mainly want to fill in normal fields, and will skip hidden fields, as there's no user input possible in the first place...
Anyway, it's there now, so use it as you wish :)

b-prod’s picture

Thanks!
I confirm that this trick works like a charm for most of sites. Just do not use it alone for big Websites, because in such a case the spammers are really more motivated ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.