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

SubmitForm Customization

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.

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
If you're submitting as an entire PDF, you'll need to Reader-enable the PDF so this works in Reader.
Also, there is a ? in your mailto statement.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.