|
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 
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: 
|