Some people like to add a "confirm email address" field to their forms. This is a matter of personal taste (since users will often copy and paste the data they entered into the email address field), but it can help to prevent errors when users re-examine their submission.
Please note:
1) This is a "fake" field. It is not recognised by the form processor and no data is stored. The field exists only for validation purposes.
2) JavaScript is required for the validation to work.
------------------------------------------
1) Add HTML snippet
Log into sc_admin and navigate to the contact form builder page.
Create a HTML snippet and position it in the field order (I recommend immediately after the email address field). Paste the following code into it:
<div class="lbl"><label for="email_confirm">* Confirm Email Address</label></div><div class="obj"><input type="text" name="email_confirm" id="email_confirm" maxlength="100" value="" /></div>
2) Validation
Open sc_admin/js/forms.js
Find the function validateContact(). After the block of code that is titled TEXT FIELD / EMAIL add the following:
if (isValidEmail($("#email").val()) && $("#email_confirm").val() != $("#email").val()) {
$("#email_confirm").addClass("err").after("<p class=\"err\"><em>Please confirm your email address</em></p>");
}
This code says that if the user has entered a valid email address, the confirmation field must contain the same text or it will error. You may want to edit the validation error message that is on the second line of the above code.
This completes the process. You should now have a "confirm email address" field on your form.