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

Need help with submit button

dm03022
Registered: Jan 10 2008
Posts: 10

I am currently using LiveCycle Designer. I have a field called Department and I would like to have a submit button to send to a particular email address based upon the Department name selected.

Can this be done? If so, how?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, there are 2 ways. The easiest is to use the old AcroForms Submit function. In live cycle you'd do this

event.target.submitForm("mailto:" + EmailAddress);

Read this article:
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

To do it all in LiveCycle Scripting you need to modify URL on the Submit or email button. This is done with JavaScript. You may find some information on this blog. Stefan Cameron is the top guy when it comes to LiveCycle Scripting. If you don't find the answer on his blog. Post a comment and if you're very lucky, he'll post a solution.

http://forms.stefcameron.com

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