K
ken
I an trying to add the fillowing to my page that will validate some fields.
<SCRIPT>
function validateform()
{
if(document.FrontPage_Form1.Status.value=="Closed" &&
document.FrontPage_Form1.Closeddate.value=="") {
window.alert ("Please Enter a Closed Date!");
return false;
}
if(document.FrontPage_Form1.closeddate.value<>"" &&
document.FrontPage_Form1.Status.value<>"Closed") {
window.alert ("Please change the status to Closed!");
return false;
}
}
</SCRIPT>
I am aslo using the validation that can be set up through the validation
interface in frontpage. The validation done through the interface works
fine but not the inserted code above. Is there a way to use both?
Thanks
Ken
<SCRIPT>
function validateform()
{
if(document.FrontPage_Form1.Status.value=="Closed" &&
document.FrontPage_Form1.Closeddate.value=="") {
window.alert ("Please Enter a Closed Date!");
return false;
}
if(document.FrontPage_Form1.closeddate.value<>"" &&
document.FrontPage_Form1.Status.value<>"Closed") {
window.alert ("Please change the status to Closed!");
return false;
}
}
</SCRIPT>
I am aslo using the validation that can be set up through the validation
interface in frontpage. The validation done through the interface works
fine but not the inserted code above. Is there a way to use both?
Thanks
Ken