Copy link to clipboard
Copied
How to change the subject "Submitting completed form" in distributed pdf form?
Copy link to clipboard
Copied
I was afraid that was what you meant. The form distribution and collection process is proprietary to Adobe. The idea is to take care of all the complicated bits for you, so it's accessible to anyone. They don't publish all the technical details or provide much in the way of customization because they change things around occasionally. When it first came out I reverse engineered as much of the process that was visible on the PDF and Acrobat side in the hopes of being able to use it in different ways. It's not obvious, however there is a lot you can do and changing the subject line may be possible. There are two locations to look for answers. First, the state and configuration data that controls the process is stored in the Document Metadata. You'll need to look the "Advanced" metadata on the first tab of the Document properties window. I doubt this will help. The other location is the script on the submit button that Acrobat places on the form when you make it "Distributed". There is a good chance the subject line is in there. If not, then the email handling is opaque and all hope is lost. Good Luck!
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Do you mean the "Subject" entry in the document metadata? Or this subject line in an email submit?
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
The subject line in email submit. Would like to modify the subject line "Submitting completed form" to distinguish between two different forms. Thanksforms.
Copy link to clipboard
Copied
I was afraid that was what you meant. The form distribution and collection process is proprietary to Adobe. The idea is to take care of all the complicated bits for you, so it's accessible to anyone. They don't publish all the technical details or provide much in the way of customization because they change things around occasionally. When it first came out I reverse engineered as much of the process that was visible on the PDF and Acrobat side in the hopes of being able to use it in different ways. It's not obvious, however there is a lot you can do and changing the subject line may be possible. There are two locations to look for answers. First, the state and configuration data that controls the process is stored in the Document Metadata. You'll need to look the "Advanced" metadata on the first tab of the Document properties window. I doubt this will help. The other location is the script on the submit button that Acrobat places on the form when you make it "Distributed". There is a good chance the subject line is in there. If not, then the email handling is opaque and all hope is lost. Good Luck!
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
My organization recently requested this of me. To modify the subject line, I rendered the URL for the form's destination as follows: "mailto:department@email.org?subject=whatever you want the subject line to say". This worked for me when I tried it out. The text that follows '?subject=' should show in the subject line of the recipient's email.
Copy link to clipboard
Copied
Ok, what didn't work?
Also, URLs cannot contain certain types of characters, any text in an URL must be URL encoded. For example spaces are $20. There's a special JavaScript function for encoding URLs, called: encodeURI();
Use the Acrobat JavaScript Reference early and often

