Would like to pass the name of the form to a java script that error checks the fields on that page. The java script will then check each field that needs to be non-blank as follows where the form name is PilotOrder but will be other forms with the same fields.
function FieldCheck()
{
var fn=parseInt(document.Pilot
Order.CUST
OM1.value)
;
if (fn == "")
returnval=true;
else
{
alert("Please enter UAL file number");
returnval=false;
}
return returnval;
}
Start Free Trial