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

Create a form and have certain button's function defined

New Here ,
Jun 02, 2020 Jun 02, 2020

Copy link to clipboard

Copied

I'm creating a form.

It has name,Location,email ID, two criteria Yes  / No option is also created and given.

5 files are already attached to this pdf file.

 

When User clicks Yes, He gets a button send xxx Documents, My need is when he/she click send xxx documents, the mail client should come up (it works perfectly), I need it to auto pick the TO address from one of the field (email ID) in the form and automatically attach 3  files from the attached 5 files.

 

Similarly when User clicks No, He gets a button send yyy Documents, My need is when he/she click send yyy documents, the mail client should come up (it works perfectly), I need it to auto pick the TO address from one of the field (email ID) in the form and automatically attach required 2  files from the attached 5 files.

 

This solves one issue. 2 More to follow if we cross this barrier.

 

Please answer urgently, ighly appreciated.

 

Thanks

Peter

 

TOPICS
Create PDFs , PDF forms

Views

440

Translate

Translate

Report

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 , Jun 02, 2020 Jun 02, 2020

Votes

Translate

Translate
Community Expert ,
Jun 02, 2020 Jun 02, 2020

Copy link to clipboard

Copied

See this article:

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

 

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

Votes

Translate

Translate

Report

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 ,
Jun 02, 2020 Jun 02, 2020

Copy link to clipboard

Copied

LATEST

Regarding the attachments: You can't attach any files to the email automatically, beside the PDF file itself.

If you're saying those files are already attached to the PDF then you can delete the ones you don't want them to submit, but only if the file is used in Acrobat. It won't work in Reader.

Votes

Translate

Translate

Report

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