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

Acroform - how pull field data into email subject

Jesterm
Registered: Apr 9 2010
Posts: 9

Hello,

I'm fairly new to Acrobat but love it. I have searched the forums but have not yet found my exact situation.

I have created an acroform (not livecycle). On the form I placed a button with an action of Submit A Form. I have chosen the PDF The complete document selection.

I would like to do 2 things:

1. I would like to pull field data into the Subject of the email submit (i.e. client name)
I have added mailto:email [at] company [dot] com but am not sure how to add the subject. I do not know how to use javascript.

2. For another version of the form I would like to either reset or close the form without saving after the submission by email is complete (so no identifiable data is left on semi-public computer)

I appreciate anyone's help with this, thanks.

My Product Information:
Acrobat Pro 9.0, Windows
Jesterm
Registered: Apr 9 2010
Posts: 9
Hi all,
Can anyone help me with this? I'm trying to learn some Javascript for this purpose. Now I'm having some problem with my script. I'm trying to pull user entered text from the "first_name" and "last" fields into the subject line of an email.
This is my attempt at the script on a button I created for users to submit the PDF to me:

var cToAddr = "email [at] email [dot] com";
var cSubLine = "Reg Form returned from "
+ this.getField("first_name").value + " "
+ this.getField("last").value;

Please help! Thanks.
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1875
Which method are you using to send the email? Possibilities include doc.submitForm, doc.mailDoc, and doc.mailForm. Including any other code you have would be helpful.