These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Two submit buttons going to two different email addresses

ndjustin20
Registered: Oct 7 2009
Posts: 21

Hello Everyone!

I'm trying to have two separate buttons inside my form that simply email my pdf to two different addresses. For some reason though the first button I create and enter an email address for takes presedence over all the rest of the buttons I create. So I create button1 with email address bob [at] bob [dot] com then i create another button2 and say that has an email address of larry [at] larry [dot] com well what is happening is no matter what i put in button2's properties or inside the XML it still puts bob [at] bob [dot] com in the to line of the email. I am using the button object and changing it to a submit with the PDF option selected from the drop down. I have been able to do this in the past but since i have upgraded to Lifecycle 8.2 I can no longer get it to work right. Any help is appreciated. I don't know how to code in lifecyle but I do understand the principles of programming so if it is something that i need to do "under the hood" so to speak then please give me that option also.

I am also receiving this warning:

"This document has accessed more than one site and may be trying to share data among different locations. This could be a privacy concern. Are you sure you want to continue?"

J

My Product Information:
LiveCycle Designer, Windows
SherLaw
Registered: Dec 11 2009
Posts: 1
Hi. I'm having the very same issue. I need 2 seperate email submit buttons. Depending on which region the person is mailing from they would choose a different button to submit the form. I havent found anything to help me get this fixed. I'm not a programmer so all the coding being referenced in different examples is of little help. I have a basic understanding of scripting but nothing to brag about!

Has anyone been able to help you with this?

Thanks
S
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Hmm, sounds like a bug in LiveCycle 8.2 or Acrobat 9. I haven't tested this yet, but I imagine you could get around it using a script for the email submit. Take a look at this article and the sample doc:

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

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I tried out the two button technique you described. I added to ordinary button to a form in LiveCycle 8.2. Then changed the buttons to "Submit" and placed a different email address for each submit URL. Each submitted to the correct address. Didn't see any problem at all. Can you describe your setup in more detail?

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script