Hello-
I keep getting an error on the and statement below any ideas? I'm checking one field to see if its been checked yes, if so than the second field auto_count needs filled in.
function DoCustomValidation()
{
var frm = document.forms["myform"];
if(frm.own_auto.value == "Y") && (frm.auto_count.value == "")
{
alert('Please fill out Auto Count!');
return false;
}
else
{
return true;
}
}
I keep getting an error on the and statement below any ideas? I'm checking one field to see if its been checked yes, if so than the second field auto_count needs filled in.
function DoCustomValidation()
{
var frm = document.forms["myform"];
if(frm.own_auto.value == "Y") && (frm.auto_count.value == "")
{
alert('Please fill out Auto Count!');
return false;
}
else
{
return true;
}
}