I am trying to force the validation of a text box through a script. I have a text box named cost_center1. When cost_center1 is equal to 1999, the form will then submit.
I do not believe I have it called properly... It seems that it is not recognizing the if statement properly.
Any help is greatly appreciated.
function DoOnSubmit(f)
{
if(f.cost_center1.value != '1999')
{
alert("Please enter a valid cost center or po number!"
;
f.cost_center1.focus();
return false;
}
else
{
return true;
}
return true;
}
</SCRIPT> -->
I do not believe I have it called properly... It seems that it is not recognizing the if statement properly.
Any help is greatly appreciated.
function DoOnSubmit(f)
{
if(f.cost_center1.value != '1999')
{
alert("Please enter a valid cost center or po number!"
f.cost_center1.focus();
return false;
}
else
{
return true;
}
return true;
}
</SCRIPT> -->