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

Send form data button works fine in Acrobat Pro 9 Extended but not in Adobe Reader 9

gw2
Registered: Dec 12 2010
Posts: 3

I have set up a button on my form that uses javascript to send the form data within the body of the email (what the user wants). This works fine within Pro 9 extended but when I test it out in Reader 9 the button displays "Connecting" for a second but doesn't fire up the email window to send it. I have been reading that the solution is with Advanced > Extend Features in Adobe Reader but I tried that with no difference.
 
Any / All advice would be greatly appreciated. Thanks.
 
GW
 
Here's the javascript:
 
var to = this.getField("to");
 
var statetagv = this.getField("st_tag");
 
var pov = this.getField("po_num");
var unitv = this.getField("unit_num");
var loccodev = this.getField("loc_code");
var modelv = this.getField("model_num");
var serialv = this.getField("serial_num");
 
var brandv = this.getField("brand_comp");
 
var deptv = this.getField("dept");
 
var bldlocationv = this.getField("located");
 
var softofficev = this.getField("soft_msoffice");
 
var softsymantecv = this.getField("soft_symantec");
 
var softxpvistav = this.getField("soft_xpvista");
 
var namev = this.getField("Name");
 
var phonenumv = this.getField("phone_num");
 
var emailv = this.getField("e_mail");
 
var subbyv = this.getField("sub_by");
  
var subject = "New PC Notification"
 
var emailBody = "";
emailBody += "NEW PC\r\n";
emailBody += "STATE TAG NUMBER: " + statetagv.value + "\r\n";
emailBody += "\r\n";
emailBody += "PURCHASE ORDER:";
emailBody += pov.value + "\r\n";
emailBody += "UNIT NUMBER:" + unitv.value + "\r\n";
emailBody += "LOC CODE:" + loccodev.value + "\r\n";
emailBody += "MODEL:" + modelv.value + "\r\n";
emailBody += "SERIAL NUMBER:";
emailBody += serialv.value + "\r\n";
emailBody += "BRAND:";
emailBody += brandv.value + "\r\n";
emailBody += "\r\n";
emailBody += "DEPARTMENT:";
emailBody += deptv.value + "\r\n";
emailBody += "LOCATION:" + bldlocationv.value + "\r\n";
emailBody += "\r\n";
emailBody += "SOFTWARE MS OFFICE:" + softofficev.value + "\r\n";
emailBody += "SOFTWARE SYMANTEC:" + softsymantecv.value + "\r\n";
emailBody += "SOFTWARE MS XP OR VISTA:" + softxpvistav.value + "\r\n";
emailBody += "\r\n";
emailBody += "NAME:" + namev.value + "\r\n";
emailBody += "PHONE:" + phonenumv.value + "\r\n";
emailBody += "EMAIL:" + emailv.value + "\r\n";
emailBody += "\r\n";
emailBody += "SUBMITTED BY:";
emailBody += subbyv.value + "\r\n";
    
app.mailMsg({
 
bUI: true,
 
cTo: to.value,
 
cSubject: subject,
 
cMsg: emailBody
 
} );

GW

My Product Information:
Acrobat Pro Extended 9.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Maybe the the big "X" in the 4th column of the Quick Bar for the 'app.mailMsg' method in the Acrobat JS API Reference explains the issue. The 4th column is for "Availability" and the explanation for the "X" is:

"The property or method is not allowed in Adobe Reader but is available in Acrobat Professional and Acrobat Standard."

George Kaiser

gw2
Registered: Dec 12 2010
Posts: 3
gkaiseril wrote:
Maybe the the big "X" in the 4th column of the Quick Bar for the 'app.mailMsg' method in the Acrobat JS API Reference explains the issue. The 4th column is for "Availability" and the explanation for the "X" is:"The property or method is not allowed in Adobe Reader but is available in Acrobat Professional and Acrobat Standard."
Thanks for the quick reply on this George !

Any ideas as to how to accomplish my goal of sending my form data within the body of the email to users of Adobe Reader?

I also have LiveCycle Designer 8.2 to use.

GW

GW

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Since the final form will be processed by Acrobat or Reader, the same restriction applies whether the form is processed in Acrobat or Reader.

You can submit the form to a web server script page and have the web server perform the email action.

George Kaiser

maxwyss
Online
Registered: Jul 25 2006
Posts: 256
You might also assemble your message body in a hidden field, and then use the submit() method where you submit only the value of that hidden field. I can't guarantee that it works with a mailto: address as URI argument (you might look for the possible arguments within the mailto: protocol, to specify subject etc.).

HTH

try67
Expert
Registered: Oct 30 2008
Posts: 2399
Another option is to create a field with the body of the message and ask the users to email it to you manually.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com