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

submitForm Customization - Help!

compucon
Registered: Feb 22 2006
Posts: 8

Tried copying various scripts to try to do what I want--this one seemed the closest but I'm a javascript beginner and not sure how to fix this. Please Help!
 
var g = this.getField("Company Name");
this.submitForm("mailto:myname1 [at] company [dot] gov?"
+ "&cc=hername1 [at] company [dot] gov"
+ "&subject="Small Business Licensing Candidate Information" + encodeURI(g.value)
+ "&body=Please attach the following files:
1)Joint venture participant's legal name, legal form, and headquarters location if applicable.
2) Table of the company capitalization, including ownership and percentage owned.
3) Resumes of the founder(s) and the top management teams. Be sure to highlight their relevant experience.")
cSubmitAs: "PDF";
 
Trying to create custom Submit button that populates subject line including field data from the form, include instructions in the body, and submit as PDF. Also would like line breaks in-between the numbered items in the body.

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
try this and tweak it as desired:

var g = this.getField("Company Name");
this.mailDoc({
cTo: "myname1 [at] company [dot] gov",
cCC: "hername1 [at] company [dot] gov",
cSubject: "Small Business Licensing Candidate Information " + encodeURI(g.value),
cMsg: "Please attach the following files:, 1)Joint venture participant's legal name, legal form, and headquarters location if applicable. 2) Table of the company capitalization, including ownership and percentage owned. 3) Resumes of the founder(s) and the top management teams. Be sure to highlight their relevant experience." });

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.

compucon
Registered: Feb 22 2006
Posts: 8
Ted, mailDoc instead of submitForm was truly the answer and the script works perfectly! Thanks so much and hopefully someone else can also benefit from this!
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
Ooops. Sorry. You're right. Should be mailDoc. MailForm sends the data.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.