Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Submit PDF via email custom button

Avatar

Level 2

I followed the instructions in LiveCycle guide but it is not working completely.  I set up a custom button and followed the instructions for Submitting a pdf via email.  When I click on the submit button, it pulls the pdf into an email  but has left off the email address and the subject. 

The format I used was mailto:address@company.org?subject=blah blah blah.

5 Replies

Avatar

Level 10

Look at the attached document. That might give you ideas..

In the sample, I have placed a normal Button (Not Email Submit) and wrote code in the preSubmit event.

https://acrobat.com/#d=EQ2vEexbmzl92x4N*wkcFw

Thanks

Srini

Message was edited by: Srini Dhulipalla

Avatar

Level 2

Thanks Srini.  I did not use the email button, I used the "button" button.  I looked at your document, I see that it works but I don't know where you did coding and I am a pretty novel user - I have never done code.

Avatar

Level 10

The code is written in the preSubmit event of the button control.

You can see the code by

1) Select the Button Control.

2) Choose Window menu -> Script Editor.

In the sample, I am taking the ToEmail Address, CC Email Address, Subject and Email Message from the user. You can change the code to hard code to a particular email address if you want.

Hope that helps.

Thanks

Srini

Avatar

Level 2

Thank you. I finally got it to work!

Sarah T. Love

Grants & Contracts Director

California Pacific Medical Center Research Institute

475 Brannan Street, Suite 220

San Francisco, CA 94107

415-601-2555 cell phone

415-600-1702 phone

415-600-1681 fax

Website: http://www.cpmc.org/professionals/research/grants/index.html

Avatar

Level 2

Thank you.

Sarah T. Love

Grants & Contracts Director

California Pacific Medical Center Research Institute

475 Brannan Street, Suite 220

San Francisco, CA 94107

415-601-2555 cell phone

415-600-1702 phone

415-600-1681 fax