[meta] Work together with Webform Validation module

Created on 16 January 2013, about 12 years ago
Updated 11 March 2025, 25 days ago

I recently became the D7 maintainer for the Webform Validation module and I just learned about the Field validation module. They are very similar: one does fields, one does Webforms, but the validation logic is the same, so perhaps we should be sharing that code.

It could be done like this: Make a new module "Form Validation" which contains the validation code. Sub-modules Form Validation Webform and Form Validation Field would connect the validation code to Webforms and fields, respectively. This is much like how Clientside Validation has a core module and separate modules to make it work with Webform, FAPI, Fields, etc.

Are you interested in discussing how this could work?

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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.

  • 🇨🇦Canada darkodev

    Just getting to migrate a bunch webforms from D7 to D10, and the lack of webform component validation in D10 is rather unfortunate. Looks like the excellent idea of having validation rules apply everywhere died 5 years ago.

    Webform Validation module exists but only has a few constraint validators, where the D7 webform validation had things like stop words, etc. I'm guessing the only way to have the Field Validation options for Webform is to create custom validators as per https://www.drupal.org/docs/8/modules/webform/webform-cookbook/how-to-ad... or via the steps in the Webform Validation README.

    I don't see a place to even contribute these in case others are interested.

Production build 0.71.5 2024