WFFM E-mail Field Validation Workaround

Here’s a quick little post for you on this fantastic, turkey and football-filled Thanksgiving evening!

The Issue

We first noticed the issue in WFFM 8.0 Update-2 (rev.150224) when adding an E-mail field to a form, but as of Update-4 (rev.150625), it’s still an issue.

form-designer-email-field

With this configuration, the e-mail field will fail client-side validation if capital letters are used.

form-with-error

The proper regex string is stored in the /sitecore/system/Modules/Web Forms for Marketers/Settings/Validation/E-mail item, but a bug in the module doesn’t inject it properly.

The Workaround

This is a known issue and Sitecore Support has a patch to correct it.  However, in the absence of the support patch, you can also chose to make it a Single-Line Text field and, in the Validation section, select Email Address.

form-designer-single-text

This will inject the proper regex value.

form-without-error

Now, back to your regularly scheduled Thanksgiving activities!

food-coma

Happy Sitecore trails, my friends!

  One thought on “WFFM E-mail Field Validation Workaround

  1. Jan Bühler
    September 9, 2016 at 9:15 am

    I think it’s still broken in Sitecore/WFFM 8.1 Update 2. I think the regex-Aspekt overwrites anything one tries to add in Sitecore.

    Like

  2. January 13, 2017 at 2:24 am

    After investigating this issue more, it appears that it only effects MVC and it’s still an issue in WFFM 8.2 Update 1

    Like

  3. Jawad
    January 26, 2017 at 8:43 am

    Hi Jason,

    Great post! Just wondering if you came across this issue.

    I’ve actually tried using the same method however don’t get any verification on the field when I input an invalid string. Running WFFM 8.1 u3

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: