Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Email Script in LiveCycle v9.0
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Email Script in LiveCycle v9.0

 Post Reply Post Reply
Camping5 View Drop Down
New Member
New Member

Joined: 13 Sep 2011
Location: Tampa, FL
Points: 3
Post Options Post Options   Quote Camping5 Quote  Post ReplyReply Direct Link To This Post Topic: Email Script in LiveCycle v9.0
    Posted: 21 Mar 2013 at 8:07pm
I have created a pretty basic form through LiveCycle, I need to have the form emailed to a specific user. However, I need the form emailed, not just the data. I have created on in the past using a nice 'mouse up*' script, but I am unable to get it to work.
The script was written about two years ago and is a basic one that takes two of the fields and fills in blanks in the email subject and body. When I save (all the save steps) the form and then re-open in Acrobat Reader, I will get the message to fill in the boxes I left empty, but the email box will  not open! I have looked at teh warning/log in LiveCycle, but tehre is nothing. Here is the script....can you tell me why I am unable to email this form??
if (form1.execValidate() == true){  

if (employeename.rawValue != null || employeename.rawValue != "") {

vSubject = "Emerging Technology Evaluation Request form " + employeename.rawValue;

vBody = "The form has been sent by " + employeename.rawValue;


if (Date.rawValue != null || Date.rawValue != "") {

vBody = vBody + " on " + Date.rawValue;


var oDoc =;


bUI: true,

cTo: "",

cSubject: "Emerging Technology Evaluation Request from " + employeename.rawValue + " ",

cMsg: "Attached please find my completed Emerging Technology Evaluation Request form."



(it is showing a return after the first if, there is no return)
Thank you, my frustration level is getting very high!!
Teresa W
Back to Top
NKowa View Drop Down
New Member
New Member

Joined: 15 Jul 2011
Location: USA
Points: 11
Post Options Post Options   Quote NKowa Quote  Post ReplyReply Direct Link To This Post Posted: 23 Mar 2013 at 6:32pm
Upgrade to the latest version of Adobe Reader, because it supports email attachments in PDF format, or you need to enable usage rights on the LiveCycle PDF using Adobe Acrobat Standard/Professional 7+.

Also, I don't see where you are passing the submission format in your mailDoc method. You may want to pass the PDF format in one of the parameters.

Note: It is easier to just add a regular "button" instead of scripting. Under the "button" properties, select "submit" as type, select the format "PDF", and enter the email address of the recipient starting with "mailto:" for the submit URL attribute.

example button submit URL:

Or you can submit to a server-side script, such as PHP or and send the attachment using SMTP without the need for 3rd party email software such as MS OUTLOOK.

For more information and online examples:

Edited by NKowa - 23 Mar 2013 at 6:35pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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

This page was generated in 0.047 seconds.