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, for Sitecore XP 9.0.2-9.1.0, download and install the patch compatible with the affected product version found on this page: https://github.com/SitecoreSupport/Sitecore.Support.294737/releases

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 change and clear the browser’s cache.