I am trying to create a form that requires a person Email Address, I was wondering what I have to do to the text box format in order for it to require an Email format i.e. poakes [at] regis [dot] edu. If a student doesn't enter in the correct format it will let them know.
var re = /^\S+@\S+\.\w{3}$/
var re2 = /^\w+([-_]\w+)*@\w+(\.\w{2,3})+$/
if (re.test(event.value) == false) {
app.alert("\"" + event.value + "\" is not a valid email address.")
app.beep()
}Note: Make this field and the following Name field required fields.
var re = /^[A-Z][a-z]+ [A-Z][a-z]+$/
if (re.test(event.value) == false) {
app.alert("That does not appear to be a valid name. I need a first and last name.")
app.beep()
}
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.