R
Rich
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="document.form2.BCPContact.checked=true" 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_editAction%>" name="form1">
<input name="StandardContact" type="checkbox" value=1 <%If
(CStr(rsUsers.Fields.Item("StandardContact").Value) = CStr("True"))
Then Response.Write("checked") : Response.Write("")%>>
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%=
rsUsers.Fields.Item("UserId").Value %>">
<input type="checkbox" name="PrimaryContact" value=1 <%If
(CStr(rsUsers.Fields.Item("Primary").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="document.form2.BCPContact.checked=true" 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_editAction%>" name="form1">
<input name="StandardContact" type="checkbox" value=1 <%If
(CStr(rsUsers.Fields.Item("StandardContact").Value) = CStr("True"))
Then Response.Write("checked") : Response.Write("")%>>
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%=
rsUsers.Fields.Item("UserId").Value %>">
<input type="checkbox" name="PrimaryContact" value=1 <%If
(CStr(rsUsers.Fields.Item("Primary").Value) = CStr("True")) Then
Response.Write("checked") : Response.Write("")%>>