PDF Editing Issues

Change the Email Subject for an Adobe Acrobat Form Submission

Jason MillerJason Miller Nov 18, 2026 868 views

Question details

The user wants to customize the subject line of the email created by an Acrobat form's Submit button.

Change the Email Subject for an Adobe Acrobat Form Submission
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the form editor

Open the PDF in Adobe Acrobat, then choose Tools or All tools > Prepare a form.

2
Open button properties

Right-click the Submit button, choose Properties, and open the Actions tab.

3
Replace the submit action

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.

4
Enter the mail script

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.

5
Save and test

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.

Replace the Acrobat Submit Action with a JavaScript Mail Action
Check the recipient's environment: JavaScript security settings, the PDF viewer, email configuration, and Reader usage restrictions can affect whether the mail action works. Test the form in the environment your recipients will use.
Free Microsoft Office alternative

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.

Open and review PDF documents alongside other office filesCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for everyday document tasksKeep document, spreadsheet, and presentation tools in one lightweight suite
microsoft office alternative - wps office

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.