Expand my Community achievements bar.

Email Submit Button

Avatar

Former Community Member
I need to email a PDF form to any person I want to. But when you add the Email Submit Button to the form it requires you to enter an email address. What if the email address is different every time? Is there a way to add an Email button so when the form user clicks on the Email button it brings up Microsoft Outlook and you can type in any email address that you want?
10 Replies

Avatar

Former Community Member
You need to have an email submit button that, when clicked, sends the email.. but you can set properties of that button and trigger it from another button. So hide EmailSubmitButton1 (or whatever it's called), create a new button, and add script like this:



// Set whatever address you like in the mailto: line

EmailSubmitButton1.resolveNode("#event.submit").setAttribute("mailto:foo@bar.com?subject=hi there", "target");



EmailSubmitButton1.execEvent("click");



This finds the submit button's submit node and sets it's target property to whatever you specify, and then clicks it.



--

Steve Tibbett, Developer

Adobe Systems

Avatar

Former Community Member
Alternatively if you leave the email address blank when designing the form when you click the button it will bring up your mail program with nothing in the To: field and you can fill the addresses in from there.



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Chris,



Thanks for the post. When I do it this way it will only send the data file to an email address it won't send the entire PDF form with it filled in. Any other suggestions?

Avatar

Former Community Member
In the XML if you change the format attribute of the submit tag of the button from "xml" to "pdf" it will email the filled in PDF. However, you can only email the PDF from Acrobat, not Reader.



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Thank you so much Chris. It worked like a charm. Of course, there are a couple of people with Acrobat 6.0 and the Email Submit button doesn't work and when they fill out the form, save it as another name and email it to someone with Acrobat 7.0, the fields are empty. I assume it is because I created it in Acrobat 7.0 Designer. I also assume that they need to upgrade to Acrobat 7.0 if they plan on filling in the form and sending it out to other people.

Avatar

Former Community Member
Well, if you save the PDF out of Designer as an Acrobat 6 compatible PDF the email submit button should work fine as long as they have at least 6.0.2. However, there may be other functionality on your form that would not work. Otherwise, yes, they would have to upgrade to 7.



Chris

Adobe Enterprise Developer Support

Avatar

Level 2

I am not understanding how to keep the form in PDF format when I use the submit button.  I create a fill able form with an email submit button.  When I emailed it for a test, it converts to an XML and the receipiant can not open it.  I want it to be a PDF attachement in the email.  I can email you my form to look at, but I am not seeing an attachment tool.

thanks for your assistance,

EC

541-736-4035

Avatar

Level 3

EC

The "Email submit button" only allows for the XML attachment.  You need to use a "Button" and set it up to email to the address you want the form sent to.  This way the button behaves like an "email submit button".

On the field page (for the Button) choose "Submit" for the Control Type. Once you choose "Submit", a "Submit" page appears. Add the email address in "Submit to URL" and under "Submit As" choose "PDF"

Hopes this helps

Avatar

Level 2

I have tried that, and a message pops up about trying to connect, do I want to block or allow. In the message it appears that the document is trying to connect to my computer. I get the same message when I type "mail to" before the email address. I have attached the form I am working on.

Thank you for your help,

Etta Cay Dixon

Willamalane Park and Recreation District

HR/Payroll Specialist

541-736-4035

Avatar

Former Community Member
Thanks for all your help Chris! You have been a big help.