jjoy123123
Programmer
I'm getting a run-time error "Object Required 'DetailForm'" on the following Validate function when it executes the IsDate line. Why won't it recognize the DetailForm as the form name? FYI - I'm using VB Script because I'm working on the intranet where everyone uses IE. Any information would be GREATLY appreciated!
VALIDATE FUNCTION -------------------------------------------------------------------------
<script language="VBScript">
Function Validate()
If IsDate(DetailForm.CallDate.Value) = False Then
MsgBox "Please enter a valid call date."
Validate=false
Else
Validate=true
End IF
End Function
</script>
FORM FIELD INFORMATION ------------------------------------------------------------
<Form name="DetailForm" ACTION="Save_Call.asp" METHOD="POST" onsubmit="Validate()">
<input type="text" name="CallDate" Value="12/12/2003">
VALIDATE FUNCTION -------------------------------------------------------------------------
<script language="VBScript">
Function Validate()
If IsDate(DetailForm.CallDate.Value) = False Then
MsgBox "Please enter a valid call date."
Validate=false
Else
Validate=true
End IF
End Function
</script>
FORM FIELD INFORMATION ------------------------------------------------------------
<Form name="DetailForm" ACTION="Save_Call.asp" METHOD="POST" onsubmit="Validate()">
<input type="text" name="CallDate" Value="12/12/2003">