Skip to content

Dynamic Forms: Valid Emails Only

by on January 5, 2010

To allow only valid emails in Dynamic Forms you need to first create your email textbox form item. Now Click on Manage Questions. Select the Email item from the Dynamic Question dropdown list.

Scroll down the page to Question Validation and expand (the + button on the left). Check off Required field and enter the appropriate messages.

Now the good stuff:
-Check off Use Regular Expression
-In the Regular expression textbox put the following without returns or spaces (be sure to get the whole thing):^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$
-enter the appropriate error messages
-click on update field and exit

Your email field should now give you an error if someone enters an invalid email!

*As an additional goodie, you may want to go to Advanced Field Options > DotNetNuke User Default and select Email Address. This will automatically pull the address the user has associated with their site identity upon registration, keeping you house in order.

Leave a Comment

Leave a Reply

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

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

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s

%d bloggers like this: