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

How do I add field data into summary line of email for submit button

New Here ,
Mar 15, 2018 Mar 15, 2018

Hi there,

I am trying to use field data to populate text in the summary line using my submit button. Can anyone help me figure this one out? I have tried searching the forums as this seems like a typical thing, but I haven't had much luck...

TOPICS
Acrobat SDK and JavaScript
783
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

correct answers 1 Correct answer

Community Expert , Mar 15, 2018 Mar 15, 2018

Sorry I misunderstood your questions. You can't do this from the built-in submit action. It can only be done from a script. Here's the article you need.

https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

Translate
Community Expert ,
Mar 15, 2018 Mar 15, 2018

You need to use a calculation script in the summary field. Calculations can be used to add text together as well as numbers.

Here are a couple of resources.

https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

Calculating field values and more

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 ,
Mar 15, 2018 Mar 15, 2018

Hi Thom - Thank you for the articles, but I'm still not getting the desired result. I am using the Submit Form action on the button properties and trying to get the fields First NameRow1 and Last NameRow1 into the summary line of the email. Is there another place I should be putting this script? I think I have read that this won't work in the URL section, but I'm not sure where else it would go. I am still very much a beginner...

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 ,
Mar 15, 2018 Mar 15, 2018

Sorry I misunderstood your questions. You can't do this from the built-in submit action. It can only be done from a script. Here's the article you need.

https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

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 ,
Mar 16, 2018 Mar 16, 2018
LATEST

Once again Thom, you are a life saver!!

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