Make text fields read only based on content selected in a drop down
I have a form on which I want to make some text fields Read-Only if a certain value is selected in the drop down menu of another field. I've tried:
if (this.getField("Combo Box 9").valueAsString = "Reprint") {
this.getField("Text Field 42").readonly = true;
}
Somehow the field becomes read-only by default then.