I have a submit function set for a form, but I'd also like to delete pages before the user sends it via e-mail submission. I've figured out how to delete the pages, but it prompts the user to choose the pages and I want it to be automated.
Example: Customer service rep's can fill out a 'close account' form with the pertinent account info, but the first two pages on the internal side are instructions a sample page. I want the submit button to automatically delete those pages as it creates the pdf attachment (in the background) for the e-mail).
I'd also like to be able to do this on a "print" button. Same idea where page 1 is directions and only page 2 is the form that needs to be printed.
What's the script?
And is it written on the "Page Properties-Action" tab or the button "Action" tab.
TIA,
Page
I would suggest placing the instructions into a separate PDF that's embedded(attached) into the form. You can place a link to the instructions on the form. This solves both the print and submit problem without any scripting. And doesn't cause permanent changes in the user's document.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script