I have a digital signature that is set to mark all fields as read only once signed. This same field has a mouse down event attached to it to perform some other functions. I would like to have the digital signature run a custom script once executed, that combines my script with the "mark all fields as read only" option included with the digital signature.
What is the shortest bit of javascript that will a) select all fields in a document b) make all fields read only. I would like to select all fields at once, rather than find and lock each one individually.
Something like this:
var fieldsArray = new Array("field1", field2", "field3");
for (f in fieldsArray) {
f.readonly = true;
}
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com