if (event.change == "R-1") {
("R-1 Desc").display=display.visible;
("R-2 Desc").display=display.hidden;
("R-3 Desc"). display=display.hidden;
if (event.change == "R-2") {
("R-1 Desc").display=display.hidden;
("R-2 Desc").display=display.visible;
("R-3 Desc"). display=display.hidden;if (event.change == "R-3") {
("R-1 Desc").display=display.hidden;
("R-2 Desc").display=display.hidden;
("R-3 Desc"). display=display.visible;
}}}
I cannot figure out why the above code does not work. The event change is a Combo Box with the values of R-1, R-2 and R-3
The "R-1 Desc" etc are text boxes that should appear or disapear depending on the choices made in the Combo Box.
a
Any input would be greatly appreciated.
Unless the user is typing the value into the text box, I believe you should be using the 'changeEx' property. You also need to get the field object and not the name of the field.
("R-1 Desc").display=display.visible;
Should be coded:
this.getField("R-1 Desc").display=display.visible;
George Kaiser