Skip to main content
arneberg1
Participating Frequently
January 9, 2022
Question

Can I change the "Subject"-line when submitting a form via e-mail?

  • January 9, 2022
  • 1 reply
  • 6575 views

I have created a form that has a "Submit"-button. When clicking the button, Acrobat generates an e-mail in my default e-mail app with the PDF-form included. So far - so good. But the "Subject"-line of the e-mail reads: "Returned form: [the PDF file name]". Is there a way I can change the default "Subject" to something else?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 9, 2022

Only if you use a script, like this:

 

this.mailDoc({cTo: "me@server.com", cSubject: "Email subject line goes here"});

 

Edited: Code fixed

arneberg1
arneberg1Author
Participating Frequently
January 9, 2022

Thank you Try67. Now it works when submitting the form from Acrobat. However, my organization's PC's has been set up to use MS Edge as default PDF-viewer, and when submitting the form from Edge, I experience three issues:

 

1) Edge overrules required fields, making it posible to send an empty form

2) When pressing the "Submit"-button, Edge generates an empty e-mail, that does not attach the form.

3) Furthermore, the e-mail automatically inserts "&bcc=" in the CC-field

 

What am I doing wrong - and is it possible at all to make Edge handle a PDF form correctly..?

Thom Parker
Community Expert
Community Expert
January 9, 2022

What you are doing wrong is using Edge. 

Only Acrobat and a few other good PDF viewers provide proper form handling, much less execute JavaScript. 

If you want proper PDF handling, you must use a real PDF viewer.

 

 

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