Update the project page so it is clear what the D9 version offers versus the D7 one

Created on 14 February 2023, over 1 year ago
Updated 6 December 2023, 10 months ago

Problem/Motivation

Currently https://www.drupal.org/project/webform_validation/ β†’ shows a list of things which Webform Validation is capable of handling, namely

  • Numeric values (optionally specify min and/or max value)
  • Minimum length
  • Maximum length
  • Minimum number of words
  • Maximum number of words
  • Equal values on multiple fields
  • Unique values on multiple fields
  • Specific value
  • Require at least one of two fields
  • Require at least one of several fields
  • Minimum number of selections required
  • Maximum number of selections allowed
  • Exact number of selections required
  • Plain text (disallow tags)
  • Regular expression
  • Must be empty (anti-spam: Hide with CSS)
  • Words blacklist
  • Must match a username

But my understanding of the d9 version at this point (and thx to those who have gotten it this far) is that the options are more limited, and eg regex is not an option. Perhaps some of the above can now be done via Twig, but as it reads, it seems like these options will all be available on all versions.

Happy to be told
a/ I am wrong
b/ i should just edit the page to update it (but I don't think I have access to do so but happy to help with documentation as and when appropriate.)

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Documentation

Created by

πŸ‡³πŸ‡ΏNew Zealand petednz

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

Comments & Activities

  • Issue created by @petednz
  • πŸ‡³πŸ‡ΏNew Zealand petednz
  • πŸ‡©πŸ‡ͺGermany markdc Hamburg

    I've been spending time trying to get this to work only to find out now that my expectations have been based on D7 documentation. Writing down a few points about D9 features is not asking too much. Please.

  • Status changed to Fixed over 1 year ago
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    I have updated the project page to make it clear which documentation is specific to Drupal 7.

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

  • Status changed to Fixed 10 months ago
  • πŸ‡¨πŸ‡¦Canada WiredEscape

    Sorry to reopen this but I don't think the original question was answered.
    The D7 info update was helpful, but there still is no clear list of D9/10 Validation rules.
    Maybe the title should be changed to 'Please update the project page with D9/10 Validation Rules'
    Many thanks,

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    I'll post that documentation if you write it.

  • πŸ‡ΏπŸ‡¦South Africa Gomez_in_the_South

    I came to this module with the same expectations as other posters, and agree that this could be clearer on the module homepage.

    I would propose adding this section:

    <h2>Drupal 9+ features overview</h2>
    <p>The following validation rules are currently included:</p>
    <ul>
    <li>Equal values on multiple fields</li>
    <li>Compare two fields</li>
    <li>Require at least one of two fields</li>
    <li>Require at least one of several fields</li>
    </ul>

    Which would look like the screenshot attached.

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    Thanks. I have added that to the page.

Production build 0.71.5 2024