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

Change Submission from FDF to PDF

Tomme
Registered: Jun 2 2011
Posts: 11

Currently I am trying to set up a form to submit at the press of a button. While this is FINALLY working the way I want, I need it to send the form as PDF and not an FDF. Can someone help me out with this?
 
Here is what I have so far:
 
var g = this.getField("Date");
this.submitForm("mailto:xxxxxxxx [at] xxxxxx [dot] org?"
+ "&subject=Ambulance 869 " + encodeURI(g.value)
+ "&body=Ambulance 869 - Daily"
);

My Product Information:
Acrobat Standard 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Use mailDoc() instead of submitForm().

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

Tomme
Registered: Jun 2 2011
Posts: 11
I'm very new to this. Can I maintain what I have and change submitForm?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
No. submitForm will only submit a FDF or URL-encoded HTML.
It's really very simple. Use this code instead of what you have:

var g = this.getField("Date");
this.mailDoc({bUI: true, cTo: "xxxxxxxx [at] xxxxxx [dot] org", cSubject: "Ambulance 869 " + encodeURI(g.value), cMsg: "Ambulance 869 - Daily"});

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