Copy link to clipboard
Copied
I have an Acrobat Form (created in Acrobat 9) with duplicate fields across several pages.
In some circumstances, I need to hide a duplicate on one page but leave it visible on others.
I can get a script to change the display property from visisble to hidden or vice versa, but it affects all fields of a given name, regardless of locatation.
Is there a way i can change the properties of a duplicate field on one page but not others?
Copy link to clipboard
Copied
Yes. Let's say the field is called Text1 and has two widgets. You can use this code to make the first one visible and the second one hidden:
this.getField("Text1.0").display=display.visible;
this.getField("Text1.1").display=display.hidden;