Locking part of a form
long-time reader, first-time poster. I will be the first to admit that I'm over my head. Here is the Reader's Digest version, my employer has tasked me with remaking all our forms and turning them into interactive PDFs. Most of the forms are pretty straightforward and I have had little issues. The main form is currently 4 pages with information from the first two pages populating information on the last two. I have come up with this after many searches:
for (var i = 0; i < this.numFields; i++) {
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
if ((typeof f.page=="number" && f.page==0) || (typeof f.page=="object" && f.page.indexOf(0)!=-1)) f.readonly = true; // makes only fields on page 1 readonly
}
I don't remember exactly which posts helped but Try67 and a few others have answered similar questions with variations of the above script and that helped. This script made the first page of the original 3-page version of the form read-only but now they would like it to be able to turn on and off the read-only for the first two pages. Any help would be appreciated.
Nate
