Hi Ken,
The reason why no validation was being done for you is because for form tag you have used, you were missing an important attribute "onsubmit" that was included in the original HTML that was produced by Method Web Forms. This is how it should look
<form action="https://www.methodintegration.com/method/timezonerouter.aspx?url=https://www.methodintegration.com/MethodWebForms/submit.aspx"
onsubmit="return validate_form(this)" method="POST">
For the validation of the email format here is what you will need to do:
Inside JavaScript function "validate_form(thisform)" between the
if (validate_maxLength("Description_Step3", "vld_Description_Step3", "Products / Services: maximum length should be 4000 characters!", 4000) == false)
{ document.getElementById("Description_Step3").focus(); return false; }
and
document.getElementById('submit_web_form').disabled = true;
You will need to insert the following script
var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/;
if (emailPattern.test(document.getElementById("Email_Step2").value) == false) {
document.getElementById("vld_Email_Step2").innerHTML = "You email is invalid.";
document.getElementById("Email_Step2").focus();
return false;
}
else {
document.getElementById(alertField).innerHTML = "";
}
If in the future you will need to implement more data validations, you will be able to create them yourself, based on the example I've given.
Thank you
Victor