These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

The opposite of readOnly?

NancyM
Registered: Sep 25 2006
Posts: 40

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.

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
In the GUI just uncheck the box but in JavaScript you set the ".readonly" property to true or false.

var f = this.getField("myTextField");
f.value = "You can’t change this message!";
f.readonly = true; // locked

f.readonly = true; // unlocked

George Kaiser