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

Add fillable form information to email body

New Here ,
Jan 27, 2023 Jan 27, 2023

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

TOPICS
PDF forms
1.3K
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 27, 2023 Jan 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

 

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 27, 2023 Jan 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 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
Community Expert ,
Jan 27, 2023 Jan 27, 2023

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

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 27, 2023 Jan 27, 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 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
Community Expert ,
Jan 28, 2023 Jan 28, 2023

Maybe the permissions for mailMsg changed recently, then, because in the past it could not be used in Reader at all:

 

try67_0-1674920961065.png

 

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 28, 2023 Jan 28, 2023
LATEST

That's in the old reference.  Here's the new one. They've changed the format:

ThomParker_0-1674932532034.png

 

However, I haven't tested it.  And I've found vast differences in what's shown in the reference and what really works. 

 

 

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