Print Page | Close Window

email PDF to include feilds from form

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=278
Printed Date: 21 Apr 2019 at 7:57am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: email PDF to include feilds from form
Posted By: slang75
Subject: email PDF to include feilds from form
Date Posted: 05 Apr 2012 at 1:48pm
Hi All,
 
I have a PDF form, works fine.
 
The javascript code that I have on the submit email button is this:
 
this.mailDoc({
bUI: true,
cTo: mailto:me@anywhere.com - me@anywhere.com ,
cSubject: "Finished the race.",
cMsg: "Attached completed form for the race results."
});
 
If have several feilds on the form, how do I add the feilds to be picked up on the subject or body? To read:
 
cSubject: "Finished the race. " +racecode,
 
It would look like "Finished the race 1234"
 
Any help?



Replies:
Posted By: try67
Date Posted: 06 Apr 2012 at 11:32am
cSubject: "Finished the race " + this.getField("racecode").valueAsString,

-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net