Hello,
I'm trying to ensure a valid e-mail address is entered in an e-mail field ONLY if the name field contains a value. I'm using the following "On Blur" of the e-mail field, but it doesn't appear to fire:
If (!getField("LA TC Name").isnull)
{
if (!eMailValidate(event.value))
{
app.alert("A valid email address is required!");
getField("LA TC Email").setFocus();
}
}
When I use:
if (!eMailValidate(event.value))
{
app.alert("A valid email address is required!");
getField("LA TC Email").setFocus();
}
it works just fine regardless of the contents of the name field.
What am I doing wrong?