cannot figure how to integrate into Webforms

Created on 29 October 2024, 24 days ago

i am using:

advanced_email_validation 2.0.2
webform 6.2.7
drupal 10.3.6

(this is running on DDEV but that shouldn't make a difference, based on my reasoning below)

i can see the page /admin/config/people/advanced-email-validation so i assume that the module installed correctly.

however i cannot figure out how to use this to validate an email field within Webforms !

i have tried this with webform fieldtypes "Email" and "Email Confirm" and neither of them worked.

i would have expected something to do with this module to appear somewhere in the "edit x element" pane that appears at right when editing a webform element. most likely in the "general" tab, near the bottom, eg: where controls for the webform_validation module would appear... or else some global setting for the webform (which seems like a strange place for validation specific to a particular field).... and i can't find it anywhere.


in general i cannot see anything different in the webform admin UI to show how to attach this validation to an email field.

if the stymiee/email-validator library didn't work on a local DDEV, for internet connectivity reasons, or needed some extra configuration, then i would expect to get some kind of error message or indication of this, rather than just not making the validation available.

also, i tried creating a user at /admin/people/create and gave a garbage email address... and got a message from advanced_email_validation that it wasn't valid. therefore i assume that stymiee/email-validator is working correctly under DDEV

how to i use this validation on a webform field then?

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇨🇦Canada earthangelconsulting

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

Comments & Activities

  • Issue created by @earthangelconsulting
  • 🇦🇺Australia darvanen Sydney, Australia

    Hi @earthangelconsulting,

    You'll find the validation handler in the Settings > Emails/Handlers tab of your webform:

    Let me know if you need any further help :)

  • 🇨🇦Canada earthangelconsulting

    thanks @darvanen ! that is indeed the correct place, it didn't seem that intuitive to me that any kind of validation would be in the same place as "handlers" but apparently, in the Drupal 9/10/11 version of Webforms, that's where it is ;-)

    are you one of the maintainers of this module, or just a very helpful user?

    suggestion to you and/or the maintainers... it would be great if you could modify the text on https://www.drupal.org/project/advanced_email_validation under "Webform fields" and just mention that "handlers" is where you find the validation settings, not anywhere in the elements listing.

    cheers
    @earthangelconsulting

  • 🇦🇺Australia darvanen Sydney, Australia

    No worries @earthangelconsulting :)

    I am the sole maintainer of the module (which for future reference you can see in the right column of the module page).

    The module page is already lengthy and I don't want to clog up the summary with documentation - but this has been an excellent nudge to open a documentation page for the module, thank you!

  • 🇦🇺Australia darvanen Sydney, Australia

    Opened 📌 Documentation Active as a follow-up.

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

Production build 0.71.5 2024