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.
Printed Date: 25 Feb 2020 at 1:23am
Software Version: Web Wiz Forums 11.10 -

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:
bUI: true,
cTo: - ,
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?

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
Check out my custom-made scripts website:

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -