I'm looking for a Javascript sample of how to show/hide fields when a document opens based on the values of a specific field (txtCost).
I currently have this script in place for validation on txtCost field, which works great when the document is edited the first time, but when it is saved and opened again, the fields are not displaying correctly.
var f = this.getField("txtVicePresidentSignature");
f.hidden = (event.value < 1001);
var f = this.getField("txtVicePresidentSignatureDate");
f.hidden = (event.value < 1001);
var f = this.getField("cmbVicePresident");
f.hidden = (event.value < 1001);
var f = this.getField("txtPresidentSignature");
f.hidden = (event.value < 5001);
var f = this.getField("txtPresidentSignatureDate");
f.hidden = (event.value < 5001);
Thanks.
var f = this.getField("txtVicePresidentSignature");
f.hidden = (this.getField("txtCost").value < 1001);etc.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com