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

how to change subject in distributed pdf form

New Here ,
Jul 28, 2018 Jul 28, 2018

How to change the subject "Submitting completed form" in distributed pdf form?

TOPICS
PDF forms
1.5K
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
1 ACCEPTED SOLUTION
Community Expert ,
Jul 28, 2018 Jul 28, 2018

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!

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

View solution in original post

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 ,
Jul 28, 2018 Jul 28, 2018

Do you mean the "Subject" entry in the document metadata? Or this subject line in an email submit?

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
New Here ,
Jul 28, 2018 Jul 28, 2018

The subject line in email submit.  Would like to modify the subject line "Submitting completed form" to distinguish between two different forms.  Thanksforms.

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 ,
Jul 28, 2018 Jul 28, 2018

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!

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
New Here ,
Dec 02, 2021 Dec 02, 2021

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.

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 ,
Dec 02, 2021 Dec 02, 2021
LATEST

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();

 

 

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