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.
Checking off Unique under Form Validation on an element (like name or email) can restrict duplicate registration to an event such as one provided through "Demo: Event Registration" but prevents registration for "Demo: Event 2" after registering for "Demo: Event 1".
While there appears to be a way to limit the "Per user submission limit per source entity" that prevents one computer from being used to complete multiple registrations whether the same or different.
The GUI configuration should allow limit only one Unique element (like Email) to register per webform as well as per source entity.
Comment | File | Size | Author |
---|---|---|---|
#5 | Screen Shot 2017-09-26 at 8.12.55 PM.png | 165.62 KB | jrockowitz |
#4 | unique_element_per-2911689-3.patch | 13.71 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWe should be able to add support for #unique_source_entity and #unique_user to \Drupal\webform\Plugin\WebformElementBase::validateUnique
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedHere is a screenshot of the updated #unique property.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI committed the patch. Please download the latest dev release to review.