I have 5 different check boxes and when a user check one of them displays a hidden field(Hidden fields are different for every check box).
I like for the user to have only one choice.
I am using the script below:
if (this.rawValue ==1)
Field1.presence = "visible";
else
Field1.presence = "invisible";
but if by mistake click a second check box the previous check box state remain ON.
How I can solve the above.
THANKs
if(this.rawValue == 1)
{
Field1.presence = "visible";
CheckBox2.rawValue = "0";
CheckBox3.rawValue = "0";
CheckBox4.rawValue = "0";
CheckBox5.rawValue = "0";
}
etc.
Something like that. There may be a more efficient way to do this.
StevenD
StevenD