I have a form with 2 check boxes. One of the check boxes is used to
specify that the user is a "primary contact." When I check the
primary contact box I want a second box for "standard contact" to be
checked as all primary contacts must be standard contacts. If I
uncheck the primary contact no change in status of the standard
contact is needed. I am assuming I can use some onclick function but
I tried using a onclick on the one box to check the second. The code
I used onClick="docume nt.form2.BCPCon tact.checked=tr ue" I was hoping
this would check the second box anytime I clicked the first. I
realize this doesnt do exactly what I ask but I couldnt even get that
part working. Is there a problem in my syntax?
How can I modify this form to check the Standard contact button when I
check the primary box?
<form method="POST" action="<%=MM_e ditAction%>" name="form1">
<input name="StandardC ontact" type="checkbox" value=1 <%If
(CStr(rsUsers.F ields.Item("Sta ndardContact"). Value) = CStr("True"))
Then Response.Write( "checked") : Response.Write( "")%>>
<input type="hidden" name="MM_update " value="form1">
<input type="hidden" name="MM_record Id" value="<%=
rsUsers.Fields. Item("UserId"). Value %>">
<input type="checkbox" name="PrimaryCo ntact" value=1 <%If
(CStr(rsUsers.F ields.Item("Pri mary").Value) = CStr("True")) Then
Response.Write( "checked") : Response.Write( "")%>>
specify that the user is a "primary contact." When I check the
primary contact box I want a second box for "standard contact" to be
checked as all primary contacts must be standard contacts. If I
uncheck the primary contact no change in status of the standard
contact is needed. I am assuming I can use some onclick function but
I tried using a onclick on the one box to check the second. The code
I used onClick="docume nt.form2.BCPCon tact.checked=tr ue" I was hoping
this would check the second box anytime I clicked the first. I
realize this doesnt do exactly what I ask but I couldnt even get that
part working. Is there a problem in my syntax?
How can I modify this form to check the Standard contact button when I
check the primary box?
<form method="POST" action="<%=MM_e ditAction%>" name="form1">
<input name="StandardC ontact" type="checkbox" value=1 <%If
(CStr(rsUsers.F ields.Item("Sta ndardContact"). Value) = CStr("True"))
Then Response.Write( "checked") : Response.Write( "")%>>
<input type="hidden" name="MM_update " value="form1">
<input type="hidden" name="MM_record Id" value="<%=
rsUsers.Fields. Item("UserId"). Value %>">
<input type="checkbox" name="PrimaryCo ntact" value=1 <%If
(CStr(rsUsers.F ields.Item("Pri mary").Value) = CStr("True")) Then
Response.Write( "checked") : Response.Write( "")%>>
Comment