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

Email Submit button

emorelli
Registered: May 20 2007
Posts: 6

I'm using Acrobat 8 Pro (with Lifecycle Designer). How do I change the Email Submit button to send the completed PDF file back, not XML?

My Product Information:
Acrobat Pro 8, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi emorelli,

Right click on the Submit button you created and select Properties. Go to the Actions tab, select the Action "Submit a Form" in the drop down list and Add it. Then click on the Submit a Form entry in the Action window and click Edit. In the Submit Forms Selection dialog choose "PDF The Complete Document."

Hope that helps,

Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
emorelli
Registered: May 20 2007
Posts: 6
I am using the "Submit By E-Mail" button. I tried to right-click in both LifeCycle Designer and Acrobat 8. In neither case do I get a "Properties" option... What am I doing wrong???
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi emorelli,

You are correct there are no Properties for the "Submit By email" button- I was referring to a submit button created in Acrobat, not LiveCycle. When I re-read your question I saw that you were using LC- sorry about that.

To do this in LiveCycle don't use the Submit By email button- instead add a regular button from the library, then select it and on the Object Field Tab select "submit" then on the Object Submit tab select "PDF" as the Submit As option.

Hope that helps,

Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
ttujoy
Registered: Nov 8 2007
Posts: 5
Hi! I'm having the same problem. I followed these steps and I can get to the object submit tab and select PDF as the submit as button so that part works. But instead of letting me put in an email address it asks for a URL to send the form to. What does that mean and is there a way to submit it to an email address instead?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You need to write an email URL;) It's not well known that the URL, or the official acronymn URI, is a general purpose addressing format that can address just about any Web Resourse.

The first part of a URI is the transfer protocal. In most cases this will be HTTP, for the Hypertext Transfer Protocal, which is the protocal used to transfer web pages. But there are many other protocals like SMTP, FTP, WebDaV and SOAP.

To write an URI that transfers an email use this format:

"mailto:me [at] mycompany [dot] com"It starts with "mailto" instead of "HTTP"

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

woodsman707
Registered: May 27 2008
Posts: 5
You can also try the following:

Highlight the button in Design view and then switch to view XML source (shows as a tab next to "display as PDF". You'll see the XML associated with that object and a line similar to the following:

CHANGE submit format="xml" to "pdf" and you're done.

Hope this helps.
J
mi1stormilst
Registered: Dec 27 2007
Posts: 13
woodsman707 wrote:
...CHANGE submit format="xml" to "pdf" and you're done.

Hope this helps.
J
EXCELLENT SOLUTION and much faster than creating a email button from scratch!
mi1stormilst
Registered: Dec 27 2007
Posts: 13
ttujoy wrote:
Hi! I'm having the same problem. I followed these steps and I can get to the object submit tab and select PDF as the submit as button so that part works. But instead of letting me put in an email address it asks for a URL to send the form to. What does that mean and is there a way to submit it to an email address instead?
Use the following structure: mailto:myname [at] yourbiz [dot] com
mrawalk
Registered: Apr 1 2009
Posts: 1
I get a message after I click submit then I click desktop email client that says "a recipient is ambiguous" how do I fix this?

I created the button in pro 9 and opened it in reader 8.
Nana
Registered: Jul 1 2009
Posts: 1
Hi,

This works for me but is there a way of clicking the submit button and send it right away, instead of the email window pops-up. Thanks in advance.
asrauf
Registered: Jul 13 2009
Posts: 5
This Email Submit button is works perfect in my PC.
Hi,

When i browse from other PC or network PC it doesn’t work.

I am not a programmer but see you have found a solution for DB submit. If i submit form from my PC its stored into Database.

While i try from other PC or network its doesn’t work. Kindly advice.
Little Danielle
Registered: Aug 25 2009
Posts: 4
Great suggestions, you all have fixed my similar issue and gave great advice that I'll keep in mind going fwd. Thanks so much.

-LiveCycle Rookie
Rsanchez
Registered: Oct 1 2009
Posts: 3
How do i make the email button not appear on the form that gets emailed?
Little Danielle
Registered: Aug 25 2009
Posts: 4
I never had a chance to try it out but I bookmarked the answer to this from another site. (Credit it author Girish Bedekar)


Here is the code to make the submit button invisible
To hide the email button when the other user gets the form in email you would just need to add the following line at the very bottom of the script after the 2 }} braces
this.presence = “hidden”;
the following is the complete script
for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
var oFields = xfa.layout.pageContent(nPageCount, “field”);
var nNodesLength = oFields.length;
// Set the field property.
for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
oFields.item(nNodeCount).access = “readOnly”;
}
}
this.presence = “hidden”;
Rsanchez
Registered: Oct 1 2009
Posts: 3
where do i put this code? I am working on adobe professional 9
johnmolina
Registered: Mar 27 2008
Posts: 76
woodsman707 wrote:
You can also try the following:Highlight the button in Design view and then switch to view XML source (shows as a tab next to "display as PDF". You'll see the XML associated with that object and a line similar to the following:

CHANGE submit format="xml" to "pdf" and you're done.

Hope this helps.
J
Thanks very much!!! one of the staff was having a hard time with this and it worked perfect and quick
Dapple
Registered: Dec 17 2009
Posts: 1
johnmolina wrote:
woodsman707 wrote:
You can also try the following:Highlight the button in Design view and then switch to view XML source (shows as a tab next to "display as PDF". You'll see the XML associated with that object and a line similar to the following:

CHANGE submit format="xml" to "pdf" and you're done.

Hope this helps.
J
Thanks very much!!! one of the staff was having a hard time with this and it worked perfect and quick
This worked for me too. Fixed in seconds.
Thanks so much
EdMom
Registered: Jan 8 2010
Posts: 5
Once the xml is changed to pdf is there anyway to also add text to the email so that whenever a person submits a form the body of the email has a a specific message? Right now there is no message. Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, All the email URL options are provided in this Article:
http://www.acrobatusers.com/tutorials/2006/submitting_data

The submit node can also be modified dynamically at runtime.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

EdMom
Registered: Jan 8 2010
Posts: 5
Actually when I changed the submit format from xml to pdf it works in the PDF Preview while I'm still in LifeCycle, but when I save the file and send it to my e-mail it doesn't work. After filling in the fields and clicking the Submit button I get an error "This operation is not permitted." Would anyone happen to know why? I'm using version 7.
Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Are you opening it up in Reader to do the second test?? Reader will only allow submitting the entire PDF if the document is Reader Enabled.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

EdMom
Registered: Jan 8 2010
Posts: 5
How do I know if it's Reader Enabled? Thanks
EdMom
Registered: Jan 8 2010
Posts: 5
In Adobe Reader, when I go to File -->Document Properties -->Securities tab it says Submitting Forms: Not Allowed. How do I make it allowed?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Open the form in Acrobat Professional. Then use the menu item, "Advanced > Enable Usage Rights for Reader", or somthing like that. The name of the menu item is different in Acrobat 8 and 9.Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

jimbo123
Registered: Jan 14 2010
Posts: 1
I created the Submit by email button, switched the "xml" to "pdf" in the code. It works perfectly- attached the whole PDF to the email. THen, I send it and it NEVER shows up in my inbox. I've been trying for days to no avail. Help! (Yes, I checked my Spam folder and tried 3 different email servers)..
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
jimbo123 wrote:
I created the Submit by email button, switched the "xml" to "pdf" in the code. It works perfectly- attached the whole PDF to the email. THen, I send it and it NEVER shows up in my inbox. I've been trying for days to no avail. Help! (Yes, I checked my Spam folder and tried 3 different email servers)..
Is your email address specified in Edit > Preferences > Identity?

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

acsports
Registered: Jan 21 2010
Posts: 2
I am using Acrobat Pro 8 and creating a writable form. I want to add a submit button but not attach a particular email address. This form would be used by numerous companies and customers and would not always come back to me. How can I create one without an email address and still distribute this form. Is is possible?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Take a look at this article:
http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

For the actual source of the email address you could include a target "email" field for your customers to fill out and then make read only.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

acsports
Registered: Jan 21 2010
Posts: 2
Thanks Thom but this is not going to work for me. For example: I create a form for my boss that he wants to send to one of his clients who in turn will send to numerous customers, if I enter an email for the submit button it will always come back to my boss or me depending whose name I enter. He wants a form that has a submit button that anyone can click on and it will take you to the email and then the client, customer etc can enter any email address to send it to. We are a manufacturer of Athletic padding and have many custom made products that require drawings with boxes that the clients will enter their particular measurements. Any ideas?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I believe that the article, and the example file shows how to use an email that's entered into a field on the form.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

cemerzian
Registered: Jan 26 2010
Posts: 3
thomp wrote:
You need to write an email URL;) It's not well known that the URL, or the official acronymn URI, is a general purpose addressing format that can address just about any Web Resourse.The first part of a URI is the transfer protocal. In most cases this will be HTTP, for the Hypertext Transfer Protocal, which is the protocal used to transfer web pages. But there are many other protocals like SMTP, FTP, WebDaV and SOAP.

To write an URI that transfers an email use this format:

"mailto:me [at] mycompany [dot] com"It starts with "mailto" instead of "HTTP"
In short, I'm using Acrobat 9 Pro. I'm trying to create a submit button on a modified form, I did not originally create the form. I've changed all the original author's data, name, company, email address and so on. I don't want to distribute the form. I want to attach the form, with other forms, on an email which will be sent to a prospect. Once they've filled out the form, I want them to hit the 'Submit Button' and have it attach to their email program for delivery.

Other than using the Distribute Form functionality is there a way for a standalone document to be created so I can acheive the above? I've trying going into the Button Properties and utilize the PDF option for sending the document. I've tried the above "mailto" in the URL field. I've read most all the posts on how to achieve my goal. It certainly can't be that hard to do such a simple thing and if so, a major fix should be done correct this problem. Or, is it just a cockpit error. Please advise. I appreciate your help in advance.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Adding an email button to a form is a very easy thing to do. So what exactly is the issue you are seeing? And please indicate whether you are using AcroForm or LiveCycle forms.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

vasha
Registered: Aug 21 2008
Posts: 9
I'm also trying to create a form with a email submit button that sends the complete pdf to an email address. I endabled User Rights as the last step before emailing out the form. Some of our testers are also getting the "recipient is ambiguous" error. When I test it, it works fine, asking me if I want to use Outlook or webbased email.

Another user has also reported this error:
When click ok to the message it just goes back to screen and only option appears to be click submit again. If do that goes back to same issue (leave option for Microsoft Outlook selected, click ok, get message again).

I created the form in Acrobat Pro 9.3.0, it has 3 required text fields and numerous radio button groups.

Usually we have issues with the User Rights, with users not being able to save the form before submitting, even after enabling the user rights. This is the first time I've seen this error. I've double checked the submit to email address and it doesn't have any hidden spaces.

Any help would be much appreciated, we need to get this form out so people can sign up for classes at our upcoming conference next month.
cemerzian
Registered: Jan 26 2010
Posts: 3
Adding an email button to a form is a very easy thing to do. So what exactly is the issue you are seeing? And please indicate whether you are using AcroForm or LiveCycle forms.

Thom Parker

I use acrobat 9.3.0 Pro. The message I get when I just have the radio button for 'PDF The complete document' action selected is 'Invalid file specification object' and oh my God, I just used your 'mailto:' fix WITHOUT the quotation marks and it works. How embarrassing. I was including the quotation marks previously. Thomp, thank you for allowing me to waste your time. :-)

Craig
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Acrobat has it's own built-in email format check. It's not a very good check. It complains about valid email addresses. If you are not seeing the problem and someone else is, then it's likely that they have a different version of Acrobat with a different email check.

The way to get around this is to email the pdf directly with the "doc.mailDoc()" JavaScript function. Of course, to use this function you'll need to do your own form level validation.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

nesec
Registered: Feb 4 2010
Posts: 1
Hey Everyone,

I'm having what I believe is a very simple problem (yet I still can't figure it out!). I have created a form in LiveCycle with a "Submit By Email" button. When I click it from MY computer, it opens up my default email browser (Thunderbird), with the completed PDF attached. Unfortunately, when accessed from many OTHER computers, clicking on the "Submit By Email" does nothing. No error message, no opening of an email browser, nada. Click click click on the button, nothing happens.

This is going to be distributed to government officials, all of whom have high security settings on their computers, have government issued email browsers, and likely only have Acrobat Reader, not Professional.

The form needs to go out ASAP - I would really appreciate anyone's help or advice - thank you so much!!

-Steve
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are several potential problems with email. If the submit is for the entire PDF, not just the data, then the form requires Reader Enabling. If the local computer does not have an email client it Acrobat may be stuck, depends on the version. And thats another one. LiveCycle has only been part of Acrobat since version 6. And it' changed a lot since then. There may be some kind of version incompatibility. It's also possible, but less likely that securtiy on the system would be a problem. If there is a MAPI client Acrobat should be able to activate it.

So you need to charaterize this issue better. What are the versions/variations of Acrobat and the target system that give a problem? which are the ones that work? What was the form created on? What's being submitted, data or the PDF? I doubt that anything would be reported in the JavaScript console, but did you check?

If you still can't get anywherer then to really debug the issue you'll need a target system to try out different variations to see what works.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

chaudhary
Registered: Feb 9 2010
Posts: 4
Hello all,

I've been asked to make changes to a form. I'm using Live Cycle Designer ES 8.2, and I'm trying to send an email of the pdf to a specified email address by clicking a button. I already created a button and put my email address in to test it. I've been able to get the form to email to myself with a pdf attachment. However, my superior would like the form to send automatically without having an email client pop up, as well as have the form close out after clicking the submit button. Does anyone know how to do this? Your help would be greatly appreciated.

Thanks!

Rajeev
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Silently sending an email breaks the Acrobat security model. The idea is that a PDF document cannot do something behind the user's back. The only way around this restriction is to perform the email send from a privileged context. This methodology is only availible in controlled environments where you can install something on the users system. It doesn't work if the PDF is generally distributed.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

chaudhary
Registered: Feb 9 2010
Posts: 4
Thanks for the help Thom. I appreciate it!
chaudhary
Registered: Feb 9 2010
Posts: 4
In response to my last post, is it possible to get the pdf to auto-close after clicking the "submit" button?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes,

event.target.closeDoc();

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

palmershire
Registered: Feb 16 2010
Posts: 5
I created the Submit by email button, switched the "xml" to "pdf" in the code. It works perfectly- attached the whole PDF to the email. THen, I send it and it NEVER shows up in my inbox. I've been trying for days to no avail. Help! (Yes, I checked my Spam folder and tried 3 different email servers)..

I added a 'Submit' button to my .pdf document in Acrobat 8 Professional (8.2). While the button works within Acrobat, as soon as I upload the file online, the button either turns into a non-clickable text field using the:

mailto:email [at] gmail [dot] comor does not submit anything using the:

I have altered the format from:

xml to pdf

which now makes the button clickable, but still doesn't send an email to my account.

The file is Reader Enabled and the address in the Identity field has the correct address.

I want to send the entire .pdf via email.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The email format has a problem, "mailto:" is repeated twice

target="mailto:mailto:email [at] gmail [dot] comShould be

target="mailto:email [at] gmail [dot] comWhen the email gets sent be sure to check the outgoing email address in your email client.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

palmershire
Registered: Feb 16 2010
Posts: 5
The additional mailto: was just an oversight in the posting. Here is the actual code with the username replaced with email:

The form is still not sending the email when online.

-----

When attempting to send the email within the .pdf, the form is now saying, 'You need to be running inside a web browser in order to submit this form'. Please advise.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
From your description it all sounds correct.

You stated in the first post that email was sent. Was your email client displayed and did you see that it was placed the out box? So that you can tell the file was definately emailed?

BTW: remove the "textEncoding" property in the submit tag. This property is specifically for xml data submission.

What version of Acrobat/Reader are you testing it on? Before enabling the file for Reader you should perform all your testing in Acrobat.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

palmershire
Registered: Feb 16 2010
Posts: 5
When using the script:
mailto:email [at] gmail [dot] com
the mail client displays properly (within Reader, not online), is placed in my Sent mailbox, and arrives to the intended account.

For script #2:

I have removed the text encoding line per your suggestion. The code now reads:

although this form does not submit.

I am using Acrobat 8 Professional (8.2). If you would like to check out the online files, here are their links:
1) mail to @ http://www.digitalrevelry.com/application_mailto.pdf
2) extension @ http://www.digitalrevelry.com/application_extension.pdf
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So it's all working now?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

palmershire
Registered: Feb 16 2010
Posts: 5
No, nothing has changed. Still need help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I tried your "application_mailto.pdf" file in both Acrobat 8 Pro and Reader, in Both the stand alone Acrobat/Reader and in the browser. All 4 cases worked. I'm not seeing any problem.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script