Copy link to clipboard
Copied
I have an alert box setup in Document JavaScripts. When a user opens a PDF form, this alert box pops up giving them information. If they click ok, it closes the popup window and takes them to the PDF form. But the Cancel button does the same thing. I would like the Cancel button to close the popup window AND the PDF form. Is this possible?
Yes. Use this code:
if (app.alert("OK?",2,1)!=1) this.closeDoc(true);
Copy link to clipboard
Copied
Yes. Use this code:
if (app.alert("OK?",2,1)!=1) this.closeDoc(true);
Copy link to clipboard
Copied
Works like a charm senor! Thank you...as usual! I wish I had 1/10th of your knowledge with this code! I'm working on it though!