Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Send a copy of a PDF to the email address in a text form

New Here ,
Jan 08, 2020 Jan 08, 2020

I need to be able to send a copy of the PDF to the email address that was typed into a text Field when I click on the submit button on the form. I already have the form emailed to a address I just need to know how to send a copy to the email address in the text field on the form.

TOPICS
Edit and convert PDFs , How to , PDF forms
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jan 08, 2020 Jan 08, 2020

I think the link to this article has changed to this:

https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/index.html

 

Anyway, the article shows how to use a script to send an email. So if you know how to use a script to get a field value, then your question is answered. If not, then take note of this line from the script in the article.

 

var cCCAddr = this.getField("ClientEmail").value;

 

 It acquires the CC email address from a field named "ClientEmail".  So there you are. Just use the same technique to get the cToAddr, i.e. the main email address. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2020 Jan 08, 2020

Thanks for your reply. I read thru the document and I did not see where I can  take a email addressed that was typed into a text field on the PDF document is used to email a copy of the PDF to that email address. Is this possible? If so, please expain how. If this not possible then please give examples.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020

I think the link to this article has changed to this:

https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/index.html

 

Anyway, the article shows how to use a script to send an email. So if you know how to use a script to get a field value, then your question is answered. If not, then take note of this line from the script in the article.

 

var cCCAddr = this.getField("ClientEmail").value;

 

 It acquires the CC email address from a field named "ClientEmail".  So there you are. Just use the same technique to get the cToAddr, i.e. the main email address. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2020 Jan 08, 2020

When I am on the button properties on the actions tab I am not able to insert the javascript code listed in the artical under Mouse Up. I can select an action (in this case I can select Submit a form) when a window pop's up where I can add the email address of where I want one of the emaill address that I am submitting to but I can only add one address and there is no where else on the button properties for me to add the javascript code. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020
LATEST

Since the solution is for a script, you need to select the "Run a JavaScript" action.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines