These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hiding Digital Signature when certain values are true

bensimmons99
Registered: Jun 2 2010
Posts: 28

I have a purchase request form, I currently have 4 signatures, but only certain signatures are required if certain events, or values are true. How would I script the following.

Currently all the signatures fields are visible.

If the text field called "Total_PO_Value" is equal to or less than $3,000 AND the text field called "PAR_YES_NO" is NO, then I want to hide the following digital signatures: "Supervisor Signature", "Additional Approval", and "Additional Approval2"

In addition If the text field called "Total_PO_Value" over $3,000 but less than $10,000, and the text field called "PAR_YES_NO" is NO, then I want to hide the following digital signatures: "Additional Approval" and "Additional Approval2"

How would I go about this?

Thx in advance!

My Product Information:
Acrobat Standard 9.3.1, Windows
bensimmons99
Registered: Jun 2 2010
Posts: 28
I set up a hidden text field which contains a calculation script for the two variables of the document: TOTAL_PO_Value and PAR_YES_NO. However it does not act how I want it too. Any suggestions?

Here is the Code I constructed: "var bReady = false;

if(this.getField("Total_PO_Value").value < "3000")
bReady = true;
else if(this.getField("PAR_YES_NO").value.length == 2)
bReady = true;

if(bReady)
this.getField("SUPERVISOR SIGNATURE").display = display.hidden;
else
this.getField("SUPERVISOR SIGNATURE").display = display.visible;"
bensimmons99
Registered: Jun 2 2010
Posts: 28
Okay,

This one works, I just can't figure out how to show or hide multiple fields.... Take a look and let me know what you think....

"var bReady = true;
if((this.getField("Total_PO_Value").value < "3000") && (this.getField("PAR_YES_NO").value.length == 2))
bReady = false;

if(bReady)
this.getField("SUPERVISOR SIGNATURE").display = display.visible;
else
this.getField("SUPERVISOR SIGNATURE").display = display.hidden;"