if checkbox1 is true then the code needs to ignore checkbox2, and checkbox3, and texbox1 = "Opion1"
if checkbox2 is true and checkbox1 is false then the code needs to ignore checkbox1, and checkbox3, and textbox1 = "Option 2"
if checkbox3 is true and checkbox1 and checkbox 2 are false then the code needs to ignore checkbox1, and checkbox2, and textbox1 = "Option 3"
It is an either or situation
This might work....??? But it is based on only one box being checked and will uncheck the other boxes
// Check box 1 is checked
if (this.getField("checkbox1").value == "On") {
// Uncheck box 2 & 3
this.getField("checkbox2").value = "Off";
this.getField("checkbox3").value = "Off";
// Set text field to Option...
this.getField("textbox1").value = "Option1";
}
// Check box 2 is checked
else if (this.getField("checkbox2").value == "On") {
// Uncheck box 1 & 3
this.getField("checkbox1").value = "Off";
this.getField("checkbox3").value = "Off";
// Set text field to Option...
this.getField("textbox1").value = "Option2";
}
// Check box 3 is checked
else {
// Uncheck box 1 & 2
this.getField("checkbox1").value = "Off";
this.getField("checkbox2").value = "Off";
// Set text field to Option...
this.getField("textbox1").value = "Option3";
}