How to turn the calculation scripting OFF in a text field with a button
I am using Adobe Acrobat 11 to create the Forms.
I will be opening them and filling them out with Adobe Reader 11.
I have a submit button on a pdf form.
It works great. I have recently added a hidden text field using the calculate script below to hide the button until certain fields have been filled in by the user.
This works great too.
My problem is, I have javascript running at folder level that hides the Submit button right before the SaveAs function.
This worked great, but now my problem is the newly added hidden text field using the calculate script to validate the other fields is keeping my Submit button "shown", and over riding the the folder level hide code.
How do I turn off the text field calculate script right before I want to hide the button and saveAs the document?
Below is the hidden button calculate script:
var bReady = true;
if(this.getField("Name").value.length == 0)
bReady = false;
else if(this.getField("Value").value.length == 0)
bReady = false;
if(bReady)
this.getField("Submit").display = display.visible;
else
this.getField("Submit").display = display.hidden;
Can I add a
if(bReady) && "the Submit button has not been pressed"
then make the Submit button visible
else hide it
How would this script be written? I do not know how to use the && operand properly.
Thank you very much...
