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

Rephrase my question : )

Eikou
Registered: Feb 5 2009
Posts: 30
Answered

var cBody = "Data: " + this.getField("Data").value;
app.mailMsg({cTo:"me [at] my [dot] com", cSubject:"Collected Data", cMsg: cBody});

since we know we can just send 1 single data, call up the mailclient and mail this data.

now to finalize my project, is there any way to bypass this mailclient popup, and send this data instantly using any script...?

cause i have been asked million of times to do this, since people dont like to save the pdf and mail it via gmail hotmail yahoo etc. cause they dont have their own mailclient.

you know, to make it more userfriendly.

for you the experts, you think its possible, to collect this data, bypassing, using php, ajax... anything,
to send this single field instantly...

: )
tnx in advance

My Product Information:
Acrobat Pro 9.0, Macintosh
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Yes, you can submit a form to a web server. If you want to use JavaScript, you'd use the submitForm method. Otherwise, you ca set up a "Submit a form" action. The user may get a security prompt, but that's it.

George
Eikou
Registered: Feb 5 2009
Posts: 30
Ok its half working at the moment, some code is totally wrong : P i just getting a blanc mail atm from the pdf.

so like you said instead of mail.app
to use submitForm.

soo what is the initial script to setup to make all this working?
the textfield i wanna send is called "Data":



hehehe i know i know : p cSubmitAs is not correct : D just giving the idea


on the backend i have this up. I am sure the $message = $_REQUEST['message'] ; need to be change to something else that correspond to my "Data" value, but i have no clue what yet...
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
For that PHP script to have any chance of working, you will need to submit as "HTML". When you set up your submit form action, you can specify which fields should be included, so just specify the field you want. For that script to work, the field name (or the mapping name) in the PDF should be set to "message". Otherwise, change the PHP to match your field name.

Your script also needs to return some sort of response that Acrobat and/or Reader is capable of dealing with. If you will be submitting outside of a browser, I would strongly recommend that you return an FDF response. If submitting from within a browser, I would strongly recommend an FDF response, but you can often get away with returning HTML.

George
Eikou
Registered: Feb 5 2009
Posts: 30
i have modified some codes : p

and for now it all seemed to work smoothly...
on my server then : )

now just hope after enable userrights and on other server : p to have it work

lalalal

tnx George!