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!
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;"