Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2008-01-10 17:29:24

compucon
Member
Registered: 2007-05-02
Posts: 2

submitForm Customization - Help!

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@company.gov?"
+ "&cc=hername1@company.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.1 / Windows

Offline

 

#2 2008-01-11 19:38:45

tedpadova
Member

Registered: 2007-04-30
Posts: 69

Re: submitForm Customization - Help!

try this and tweak it as desired:

var g = this.getField("Company Name");
this.mailDoc({
cTo: "myname1@company.gov",
cCC: "hername1@company.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

Offline

 

#3 2008-01-14 17:53:48

compucon
Member
Registered: 2007-05-02
Posts: 2

Re: submitForm Customization - Help!

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!

Offline

 

#4 2008-01-14 18:31:51

tedpadova
Member

Registered: 2007-04-30
Posts: 69

Re: submitForm Customization - Help!

Ooops. Sorry. You're right. Should be mailDoc. MailForm sends the data.

ted

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in