Ach super, danke. Hatte schon ewig gesucht.
Wenn ich das Ganze nun für Auswahl4 und Text17 erweitern möchte, wie muss ich dann die Funktion aufbauen?
Hatte es so probiert, aber ging nicht:
function check_Group1()
{
switch(event.target.value){
case "Auswahl1":
this.getField("K2").readonly = false;
this.getField("K3").readonly = false;
this.getField("Text15").readonly = false;
this.getField("Text16").readonly = false;
break;
default:
var f = this.getField("K2");
f.checkThisBox(0,false);
f.readonly = true;
f = this.getField("K3");
f.checkThisBox(0,false);
f.readonly = true;
f = this.getField("Text15");
f.value = "";
f.readonly = true;
f = this.getField("Text16");
f.value = "";
f.readonly = true;
}
}
{
switch(event.target.value){
case "Auswahl4":
this.getField("Text17").readonly = false;
break;
default:
var f = this.getField("Text17");
f.checkThisBox(0,false);
f.readonly = true;
}
}
als Antwort auf: [#564749]