Validation for unique values

Created on 10 September 2021, about 3 years ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

The D7 version of webform_validation has a validation that ensures that all selected components have a unique value, but the D8/9 version does not.

Proposed resolution

I wrote a submodule available here: https://github.com/MegaphoneJon/webform_validation_unique/tree/main. I have no preference for whether this gets folded into the main module or remains separate. Note that my use case doesn't involve elements that can hold multiple values, and I'm not sure what the desired behavior would be - the D7 version doesn't seem to support multiple-value fields, so neither does this.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaphoneJon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Are there any plans to update this submodule to Drupal 10?

  • πŸ‡ΊπŸ‡ΈUnited States MegaphoneJon

    @robbe03 - Good question! The client I wrote it for still uses it quite heavily, but I don't handle this particular work for them anymore. Patches are welcome - either to this submodule, or as Liam says, to incorporate this into the parent module. If not, I imagine the issue will arise when my client moved to D10. It seems like that should be quite soon!

  • πŸ‡ΊπŸ‡ΈUnited States Greg Boggs Portland Oregon

    On a similar topic, I believe Drupal 10 doesn't have an validation for select_exact validation that we had in D7 (yet?) Do I have that correct? I'm still pretty new to webforms in D10.

Production build 0.71.5 2024