Incorrect email validation message is shown in Sitecore Forms


Description

The Sitecore Forms application might display an incorrect validation message for the Email field. When changing the value of the Message field in the \sitecore\system\Settings\Forms\Validations\Email Validator item, the default message from \sitecore modules\Web\ExperienceForms\scripts is displayed:

Please enter a valid email address.

Solution

To resolve the issue:

As an alternative solution, proceed as follows:

  1. Open the \Views\FormBuilder\FieldTemplates\Email.cshtml file.
  2. Remove the following attribute and its value:
    type="email"
  3. Save the changes and clear the browser cache.