UWA Logo
  Prospective Students | Current Students | Staff | Alumni | Visitors | About    
           
Home
Students
Staff
FAQFAQ FAQ FAQ
IT Support Staff
IT Service Desk
Contact ITS
Status & Notices
Forms
Policies
Strategy
Site Map

Web Site Frequently Asked Questions (FAQ)

I want to check for a valid email address in my form

You have spent a lot of time and energy creating a form using the Custom Form Template.

You have asked users for their email addresses so that you can get back to them but have started receiving submissions with badly formed addresses, containing commas, or lacking the @ symbol.

You have even applied a rule to your form to ensure that the email field is completed, yet the completed field contains characters that mean it can't possibly be a valid email address.

There is something you can do. You can create a rule using the following steps to check that the user enters an email address in the correct format.

1) Create a rule for the Email field of your form and select "match the extended regexp case sensitive" from the drop down menu

Create a new rule

2) Add the following line to the box labelled "Value"

(^[a-z]([a-z_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\.]*)(\.[a-z]{3})(\.[a-z]{2})*$)

3) Press "Commit".

This will check that the email address is input in a valid format. For example it will check that the email address contains an @ symbol and doesn't contain commas.

The user will still receive a pretty cryptic error message if their email address is invalid so it is a good idea to...

4) Enter an easy to understand error message in the field labelled "Alt Desc". See illustration below:

Enter a valid error message

Back

Top of Page