The email field is not being properly validated.

Created on 8 July 2025, 4 days ago

Problem/Motivation

I noticed that the Webform email field is not being fully checked.
The module only verifies the presence of the '@' character, but not the final domain.

As a result, if a user mistakenly types:
name_lastname@gmail
instead of @gmail.com,
Webform will still accept it, allow the user to proceed, and submit the form.
This means that the email field in the submission results may be missing the domain.

Steps to reproduce

I have just verified this behavior on a fresh Drupal installation (11.2.2) using Webform version 6.3.0-beta2.

🐛 Bug report
Status

Active

Version

6.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024