Skip to main content
juliew29699847
Participant
March 15, 2017
Answered

How can I link an email submit button from the person who is the initiator text box field? I have it working for me as the creator of the form but I want this form to be used by many people with the replies coming back to them (the initiator) not me.

  • March 15, 2017
  • 3 replies
  • 2475 views

How can I link an email submit button from the person who is
the initiator text box field? I have it working for me as the creator of the
form but I want this form to be used by many people with the replies coming
back to them (the initiator) not me.

This topic has been closed for replies.
Correct answer NKOWA555

Add a normal submit button. Then add the following JavaScript action in the mouse up event:

Note: Replace "TextBoxFieldName" with whatever the field name is of the text box with the email address. The script should submit the whole PDF form in Adobe Reader as well as Adobe Acrobat Pro/Std.

//Taken from: www.fdftoolkit.net/email-pdf-mailto-generator.aspx

//Place this script in the buttons mouseUp JavaScript event 

//http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=345 

//SUBMIT PDF FORMAT WITH ADOBE READER 

var url = "mailto:" +  encodeURIComponent(this.getField("TextBoxFieldName").value) + "?subject=TEST&body=TEST&cc=&bcc="; 

var submitAs = "PDF";//PDF,FDF,XFDF,XDP,XML 

this.submitForm({cURL:url,cSubmitAs:submitAs});

3 replies

NKOWA555
NKOWA555Correct answer
Inspiring
March 16, 2017

Add a normal submit button. Then add the following JavaScript action in the mouse up event:

Note: Replace "TextBoxFieldName" with whatever the field name is of the text box with the email address. The script should submit the whole PDF form in Adobe Reader as well as Adobe Acrobat Pro/Std.

//Taken from: www.fdftoolkit.net/email-pdf-mailto-generator.aspx

//Place this script in the buttons mouseUp JavaScript event 

//http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=345 

//SUBMIT PDF FORMAT WITH ADOBE READER 

var url = "mailto:" +  encodeURIComponent(this.getField("TextBoxFieldName").value) + "?subject=TEST&body=TEST&cc=&bcc="; 

var submitAs = "PDF";//PDF,FDF,XFDF,XDP,XML 

this.submitForm({cURL:url,cSubmitAs:submitAs});

juliew29699847
Participant
March 16, 2017

Thank you very much for the java script information, it's working!

juliew29699847
Participant
March 15, 2017

Let me clarify. I am creating this form for others in my department to use. They will document the issues on a portion of the form and email the form to the end user. The end user will provide follow-up counter measures and return (submit) the form back to the originator to close out the form.

try67
Community Expert
Community Expert
March 15, 2017

OK, that makes more sense... Do those other people have Acrobat?

juliew29699847
Participant
March 15, 2017

They all have Adobe Reader DC, but not access to create/edit forms.

try67
Community Expert
Community Expert
March 15, 2017

Why would someone want to submit a file to themselves?