I could not get the validate_email or validate_required javascripts that came with DF 3.1 to work so I built my own if anyone is interested they are here;
Email Address validation;
function verifyEmail(emaddress){
var status = false;
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
if (emaddress.search(emailRegEx) == -1) {
alert("Please enter a valid email address.");
}
return status;
}
On the client side you just need - verifyEmail($(ShortFieldName))
Required Field Validations
function Verifyrequired(reqfield,alerttxt){
var status = false;
if (reqfield.value==null||reqfield.value==""){
alert(alerttxt);
}
return status;
}
On the Client side - Verifyrequired($(ShortFieldName),'your alert text')
these seem to work well for me.