PDF Form javascript for making readonly field by using button
Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.
Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.
Can you please explain how to do this? I have searched creating a loop and I have found a few different articles but I can't find the proper code to insert into the javascript box that comes up with the button.
Do you want your button to be made read only?
One starts with Acrobat JS Reference.
// make all fields in a form read only;
var oField; // variable for field being processed;
// loop through the form fields;
for (var i = 0; i < this.numFields; i++) {
// process each field name;
oField = this.getField(this.getNthFieldName(i)).readonly = true;
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.