I have two area on a form. If one area is filled in the other area needs to be readOnly.
What I need to know is, if the form has been filled incorrectly and the submitter has unchecked the box that is controlling the other area to be readOnly, what can be used to cancel the readOnly command when the checkbox is unchecked.
var f = this.getField("myTextField");
f.value = "You can’t change this message!";
f.readonly = true; // locked
f.readonly = true; // unlocked
George Kaiser