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

Default Email Sent During Form Submit

kelkant
Registered: Dec 4 2008
Posts: 6

Hello,

After the user fills out a form and clicks "submit", it automatically generates an email that says:

"Instructions to add this form to a responses file.
1) Double click the attachment
2) Acrobat will prompt you to select a responses file."

Is it possilbe to modify this default content? My concern is that it would be quite misleading for computer novices.

Thanks very much.

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you place your own email submit button on the form you can include your own subject and message.

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kelkant
Registered: Dec 4 2008
Posts: 6
Thanks very much for your reply. My apologies as I cannot seem to find where to input the format for the subject/message.

- I create a submit button
- Trigger: Mouse Down; Action: Submit a Form
- Close.

I cannot seem to find the area where Acrobat allows me to create the content for the email.

Thank you for your help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It's all in the URL. See this article.

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

The URL format described in this article can also be used with the "Submit a Form" action.

Besides the submitForm Action, there are 3 other fucntions in Acrobat JavaScript that can send an email. Each has inputs for the subject and message body. I've already written an article on this and hopefully it'll be posted soon on JavaScript Corner. But you can look them up in the Acrobat JavaScript Reference as well.

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kelkant
Registered: Dec 4 2008
Posts: 6
Hello, sorry for the delay in between responses and thank you for the above tips - they worked perfectly.

The only issue I am running into now is that when Acrobat opens the distributed file, at the top, there's a default message that says: "Please fill out the following form. When finished, click "Submit Form..." Is there a way for me to alter the functionality of this submit form button so that it matches my customized submit form button?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I do not believe that there is any way to change this text:(

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kelkant
Registered: Dec 4 2008
Posts: 6
Thanks again for your help.

To confirm, even after creating a "custom" submit button within the PDF, there will ALWAYS be a default submit button at the top of the document that has its own default attributes. Is this correct?
Andrew Kinnear
Registered: Jul 26 2010
Posts: 1
Thom,

The link you have posted here

''http://www.acrobatusers.com/tech_corner … ting_data/''

appears to be dead now. Do you know if the article is posted elsewhere?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
that post is very old. JavaScript Corner no longer exists. Everything is in the tutorials now. Try this link

http://www.acrobatusers.com/learning_center/tutorials?title=submit&tid_1=6&current_source_language=1&form_build_id=form-6d65454397b76c744eac41b081d041ee&form_id=views_exposed_form

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script