Hi I would like to have one checkbox change the value of another checkbox. In Excel I was able to acheive this with the following:

Private Sub CheckBox011_Click()
If CheckBox011.Value = False Then CheckBox012.Value = CheckBox011.Value
End Sub

What would be the syntax to do this in Front Page? All I have is this and it doesn't work...

<input type="checkbox" name="checkbox1"
onclick="checkbox2.value=checkbox1.value">

Thanks

MBo

Re: Checkbox checks other checkboxes? by Jon

Jon
Wed Jan 14 05:58:36 CST 2004

Hi,
something like this
<input type="checkbox" name="check1"
onclick="this.form.check2.checked=true;">

--
Cheers,
Jon
Microsoft MVP - FP

"MBo" <thembo@hotmail.com> wrote in message
news:4F9C8A64-A22B-4970-BE94-CCC5A764E3AE@microsoft.com...
> Hi I would like to have one checkbox change the value of another checkbox.
In Excel I was able to acheive this with the following:
>
> Private Sub CheckBox011_Click()
> If CheckBox011.Value = False Then CheckBox012.Value = CheckBox011.Value
> End Sub
>
> What would be the syntax to do this in Front Page? All I have is this and
it doesn't work...
>
> <input type="checkbox" name="checkbox1"
> onclick="checkbox2.value=checkbox1.value">
>
> Thanks
>
> MBo
>