Change the Email Subject for an Adobe Acrobat Form Submission
Question details
The user wants to customize the subject line of the email created by an Acrobat form's Submit button.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form uses a Submit button to create an email containing the returned form.
- Observed behavior
- The generated email uses a default subject containing the returned form name instead of the desired custom subject.
Open the form in a version of Adobe Acrobat that can edit form fields, and confirm that you have permission to modify it. Have the intended recipient address and subject line ready, and make sure an email application is configured for testing.
Replace the Acrobat Submit Action with a JavaScript Mail Action
Use a JavaScript action when you can edit the form and want to set the recipient and subject explicitly.
The mailDoc method emails the PDF document. If the existing button submits only form data, such as FDF, replacing it with this action changes what is sent.
Open the PDF in Adobe Acrobat, then choose Tools or All tools > Prepare a form.
Right-click the Submit button, choose Properties, and open the Actions tab.
Select the existing submit action and click Delete. For the button's Mouse Up trigger, choose Run a JavaScript from the action list and click Add.
In the JavaScript editor, enter: this.mailDoc({cTo: "me@server.com", cSubject: "Custom email subject"}); Replace the example address and subject with your own, then confirm the dialog.
Close the properties dialog, save the PDF, and click the Submit button. Check that the email draft has the intended recipient, subject, and PDF attachment.

Work with PDFs and Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office files. Its format compatibility makes moving everyday documents easier, although it does not change an Acrobat form's JavaScript action.

Frequently Asked Questions
Will the JavaScript action send form data or the whole PDF?
The mailDoc action attaches the PDF document. If your existing Submit action sends FDF or another data-only format, review the receiving workflow before replacing it.
Where do I change the recipient address?
In Acrobat's Prepare a form tool, open the Submit button's Properties > Actions, edit the JavaScript action, and replace the address in cTo.
Why does the Submit button not open an email draft?
Check that an email application is configured and that the PDF viewer permits the JavaScript action. Test the saved form in Acrobat and in the viewer your recipients will use.
Can WPS Office change the Acrobat button's JavaScript action?
Use Adobe Acrobat's Prepare a form tool to edit this button action. WPS Office can be used as an alternative for everyday PDF and Office document work, but it does not fix the Acrobat action.




