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

Submit by e-mail button - dynamic subject field

mammov
Registered: May 10 2010
Posts: 2

Hey everyone. I could really really use some help with this one. I created a contract in acrobat and can't seem to figure out how to make the subject field of the generated e-mail dynamic. The document can be donwloaded here: http://ammoving.ca/docs/Contract_flat_rate.pdf
What I could really use a hand with is , when clicking the submit by e-mail button, the automatically generated e-mail should automatically pick up the data from the first line in the contract (customer's name) and put it in the subject field (i.e Subject: New Contract from [customer name] submitted one [current date].

I was searching the forums and found somewhat of a solution but I wasn't able to implement it in Adobe for Mac (might be different from the one for Windows ? ! )

I would really appreciate any suggestions.

Thanks,
Michael

My Product Information:
Acrobat Pro 9.3.1, Macintosh
jimhealy
Team
Registered: Jan 2 2006
Posts: 146
Try this, in your e-mail button, remove the Submit a Form action and add a Run a Javascript action with this code:
this.submitForm({ cURL: "mailto:info [at] ammoving [dot] ca?subject=" + "New Contract from " + getField("Customer's Name").value + " submitted on " + util.printd("mm/dd/yyyy", new Date()), bEmpty: true, cSubmitAs: 'FDF'});Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com

marathon62
Registered: May 14 2010
Posts: 3
How did you get your form to have the boxes that describe what to enter into the fields, and once you click on it it goes away? I like that feature.
jimhealy
Team
Registered: Jan 2 2006
Posts: 146
It's a custom format script:
if (!event.value) event.value = "Blank Text Here";

Basically, if the field is blank, set the formatted text to some value otherwise just use the value of the field. If you want any formatting on the field like currency you would need to add an else and supply that formatting as script.

Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com