Expand my Community achievements bar.

SOLVED

User-defined subject in e-mail button?

Avatar

Former Community Member

LiveCycle Designer 8.2.

How do you set up an e-mail button such that user-entered information, referenced from a text field perhaps, appears in either the subject or the body when you click the button, instead of a pre-programmed message?  Is this possible?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Here is the modified sample.. In this sample, I am setting the To Email and CC Email directly in the preSubmit event code..

User will enter the Subject and Message in the form..

I am using the preSubmit event code to send the email..

https://acrobat.com/#d=HouRLov3lOntSbqAfsr5Hg

Let me know if you need any help..

Thanks

Srini

View solution in original post

8 Replies

Avatar

Former Community Member

Yes it can be done and there are many examples posted throughout this forum. I suggest that you do a search in the forum (I am not at my computer so I do not have access to the samples that I have).

Paul

Avatar

Former Community Member

I did try a forum search prior to posting this, and most of the references to this question are either inconclusive or 4 years outdated, neither of which is very helpful.  I'm sure a new, updated answer would be highly appreciated by many forum users.

Got anything a bit more useful?

Avatar

Level 7

Srini Dhulipalla posted a sample in May that shows how to do this. You can find the sample here:

https://acrobat.com/#d=CK4QgXn38l49bzQlhWtKSA

Avatar

Former Community Member

I have a sampel at the office ...when i get back I will post it for you.

Paul

Avatar

Former Community Member

Thanks so much, I'm sure I would have found this eventually but there were so many to look through and I got tired after checking the first 10 or so .

Avatar

Former Community Member

This almost works but not quite.

I actually want only the subject and message to be user-defined, and not the e-mail addresses or the CC (I have pre-defined e-mail addresses to which I want the pdf to be sent, not the end-users to define where it is sent).

I'm having trouble adjusting the code to remove the strAddress and strCC variables, and entering the single, specific e-mail address that I want it sent to.

Avatar

Correct answer by
Level 10

Here is the modified sample.. In this sample, I am setting the To Email and CC Email directly in the preSubmit event code..

User will enter the Subject and Message in the form..

I am using the preSubmit event code to send the email..

https://acrobat.com/#d=HouRLov3lOntSbqAfsr5Hg

Let me know if you need any help..

Thanks

Srini

Avatar

Former Community Member

This is exactly what I needed!  Thanks for helping someone who is still mostly javascript ignorant...:)