I am now getting this JS error:SCRIPT5007: The value of the property ‘submit’ is null or undefined, not a Function object
64ee3da906aeda9d8525789c00604594?EditDocument&AutoFramed, line 67 character 5
(Last line of code below…)
Ideas anyone?
// ====================================================
// Check Field Validations
// ====================================================
function CheckField()
{
var message = “”;
var tdoc = document.forms[0];
if ( checkTextField ( tdoc.Company)) {
message += ("Company \n");
}
if ( checkTextField ( tdoc.Contact)) {
message += ("Contact \n");
}
//if ( checkTextField ( tdoc.Phone)) {
// message += (“Phone \n”);
// }
if ( checkTextField ( tdoc.ExtManRep)) {
message += ("ExtManRep \n");
}
if ( checkTextField ( tdoc.SendQuote)) {
message += ("Email \n");
}
if ( checkTextField ( tdoc.Territory)) {
message += ("Territory \n");
}
if ( checkTextField ( tdoc.oppSource)) {
message += ("Oppty Source \n");
}
if ( checkTextField (tdoc.EquipmentType)) {
message += ( "TDI Equipment Family \n");
}
if ( checkTextField ( tdoc.CustomerProgramName )) {
message += ( "Customer Program Name \n" );
}
if ( checkTextField ( tdoc.ProductManager)) {
message += ( "Product Manger \n ");
}
if(message.length > 0)
{ alert( message + "\n Please fill in the required areas listed\nabove before submitting document\n\nThank you" );
return false; }
else
{ submit(); }
};