Copy link to clipboard
Copied
Hi, I'm sure this is probably a really easy one, but I'm a newbie to javascript...
What I'd like to achieve is to unhide a hidden field on an Acrobat form based on the correct password being entered into a text field. Any (polite!) suggestions?
Many thanks in anticipation.
Copy link to clipboard
Copied
Place this script as a Validation script in the password field:
if (event.value == "PASSWORD") {this.getField("FIELDNAME").display = display.visible;}
else {this.getField("FIELDNAME").display = display.hidden;}
Acrobate du PDF, InDesigner et Photoshopographe
Copy link to clipboard
Copied
Place this script as a Validation script in the password field:
if (event.value == "PASSWORD") {this.getField("FIELDNAME").display = display.visible;}
else {this.getField("FIELDNAME").display = display.hidden;}
Acrobate du PDF, InDesigner et Photoshopographe
Copy link to clipboard
Copied
Thank you JR Boulay for the quick response and that worked perfectly.
Simple when you know how... not so if you're a JS newbie! Very much appreciated.

