Copy link to clipboard
Copied
Hello guys,
How can I create a JavaScript button in Acrobat DC Pro which will lock all fields and save my work on (ex: Desktop) so when I e-mail to anyone it cannot be modified.
Hope i was clear enough.
Kind regards
Hi.
You can place this JavaScript in a button on mouse up:
// all fields to readonly
for(var i=0;i<this.numFields;i++) {
var oFld = this.getField(this.getNthFieldName(i));
oFld.readonly = true;
}
Copy link to clipboard
Copied
Hi.
You can place this JavaScript in a button on mouse up:
// all fields to readonly
for(var i=0;i<this.numFields;i++) {
var oFld = this.getField(this.getNthFieldName(i));
oFld.readonly = true;
}
Copy link to clipboard
Copied
Dear JR_Boulay
Thank you so much, it works perfect.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now