Skip to main content
Participant
January 27, 2023
Question

Add fillable form information to email body

  • January 27, 2023
  • 2 replies
  • 1342 views

Is it possible to add the fillable form information to the body of an email instead of an attachment when they click 'submit'?

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
January 27, 2023

Yes, but not using the standard "Submit" action. It has to be scripted. 

See the "app.mailMsg()" function:

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#mailmsg

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
January 27, 2023

It's important to note that this method will only work in Acrobat, though, not in the free Reader.

Thom Parker
Community Expert
Community Expert
January 28, 2023

Well it's not that it doesn't work in reader, but that it requires privilege.  The reference indicates it operates in all products.  

 

So another option is to add the info in a "doc.Submit Form", "doc.mailDoc", or "doc.mailForm" call. See this article for options using the submit operation:

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

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
jane-e
Community Expert
Community Expert
January 27, 2023

@Kelsey28139309et83 wrote:

Is it possible to add the fillable form information to the body of an email instead of an attachment when they click 'submit'?



Not straight out of the box — sometimes scripters have solutions (some paid; some free).

 

Within Acrobat, you can import the .fdf and/or pdf files into Excel or write code into the Submit button that will put the info into your database.

 

What is your goal in having the form info in the body of the email?

 

Jane