Hello,
This function is a form validator, that comes up when a certain radio button is selected. Hence: document.getElementByid(“PG” & intCount & “n”).checked, as seen below.
There’s a syntax error here that I’m unable to find. Please help me out here.
[I]
FYI: txtReason,PG,n, are just strings.
strOptionName is a variable
<SCRIPT language=”VBScript”>
Sub btnSubmitOnClick()
Dim intCount, bolGood
bolGood = True
For intCount = 1 to <%=introw – 1%>
If document.getElementByid(“PG” & intCount & “n”).checked and document.getElementByid(“txtReason”<%=strOptionName%>).value = “”
then
msgbox “Please give a reason for why you wish to deny Ownership of the group”
bolGood = False
document.getElementByid(“txtReason”<%=strOptionName%>).focus
exit for
end if
Next
If bolGood = True then
document.frmVerify.submit
end if
End Sub
</SCRIPT>