Hi can anyone point out what is wrong with this code. I got the above
error after introducing the "else if" statement
if (newdoc=="isnew ")
{
parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
+
classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList="+membe rList+"&TeamNam e="
+teamName;
}
else if (teamNameTemp!= teamName)
{
parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
+
classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList=""&Team Name="
+teamName;
}
else
{
thisForm.submit ()
}
Thanks
error after introducing the "else if" statement
if (newdoc=="isnew ")
{
parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
+
classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList="+membe rList+"&TeamNam e="
+teamName;
}
else if (teamNameTemp!= teamName)
{
parent.nameChec k.location.href ="//dbTeamNameValid ation?OpenForm& ClassSection="
+
classSection+"-"+classNumber+" &teamchange="+t eamchange+"&Mem berList=""&Team Name="
+teamName;
}
else
{
thisForm.submit ()
}
Thanks
Comment