I am having a problem passing a text variable. I'm doing something wrong, but don't know what. Here's the code...
1 Dim FormNum
2 Dim FormValue
3 Sub JobIDSubmit_onclick
4 Dim JobID
5 call ValidateForm(0, JobID)
6 JobID = document.forms(0).JobID.value
7 window.navigate("SelectSchedDecision.cfm?ID=" & JobID)
8 End Sub
10 Sub ValidateForm(FormNum, FormValue)
11 if not len(trim(document.forms(FormNum).FormValue.value)) > 0 then
12 strValMessage = "You must enter a value."
13 document.forms(FormNum).FormValue.focus()
14 exit Sub
15 end if
16 End Sub
What I get is the error message:
Error: Object doesn't support this property or method: 'document.forms(...).FormValue'
Which tells me my variable FormValue is being taken literally on line 11. How do I get the variable FormValue to convert to the text JobID on line 11?
Thanks,
John
1 Dim FormNum
2 Dim FormValue
3 Sub JobIDSubmit_onclick
4 Dim JobID
5 call ValidateForm(0, JobID)
6 JobID = document.forms(0).JobID.value
7 window.navigate("SelectSchedDecision.cfm?ID=" & JobID)
8 End Sub
10 Sub ValidateForm(FormNum, FormValue)
11 if not len(trim(document.forms(FormNum).FormValue.value)) > 0 then
12 strValMessage = "You must enter a value."
13 document.forms(FormNum).FormValue.focus()
14 exit Sub
15 end if
16 End Sub
What I get is the error message:
Error: Object doesn't support this property or method: 'document.forms(...).FormValue'
Which tells me my variable FormValue is being taken literally on line 11. How do I get the variable FormValue to convert to the text JobID on line 11?
Thanks,
John