We're running a brief tournament, but in order to avoid multiple attempts with the same e-mail address I wondered if it was possible to limit the number of equal values. So specifically for this case: limit the amount an identical e-mail address can be submitted. Let's say an anonymous visitor can only participate 10 times with the same e-mail address.

The Webform module itself allows to set an e-mail field to a "unique" value, so it can only be submitted once. But in our case it should be a defined maximum of times.

Comments

Liam Morland’s picture

Webform itself also has means to limit submissions by cookies and IP address on the Form settings page under "Per user submission limit". People can get around this. Of course, people can also get an unlimited number of email addresses to defeat limits set that way.

I think what you are suggesting fits better as an extension to submission limits rather than form validation.

You could write a module which uses the hooks exposed by Webform Validation to do what you want.

Liam Morland’s picture

Status: Active » Fixed

If you need more help, please re-open and provide details.

Status: Fixed » Closed (fixed)

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