Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Liam MorlandWebform 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.
Comment #2
Liam MorlandIf you need more help, please re-open and provide details.