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

Submit button malfunction

Gheezer
Registered: Feb 16 2009
Posts: 19
Answered

I have a Submit button that is suppose to email the form.
form [at] work [dot] org?subject="The Form"
Export Format: PDF - The complete document

When opening forms from Reader, if the form is located on a local drive I get the error "a recipient is ambiguous", but if I open it from a web page, then it works.

Is there a different script for local vs webpage? If so, what is it?

Thanks,

Troy

My Product Information:
Acrobat Pro 8.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Interesting. There isn't a different script for the different contexts, however it's possible that the browser environment interprets the submit URL differently.

Are you using the Submit Acrion on the button? If so then email should be prefixed with "mailto:" So the complete submit URL should be:

mailto:form [at] work [dot] org?subject="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]

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

Gheezer
Registered: Feb 16 2009
Posts: 19
thomp wrote:
Interesting. There isn't a different script for the different contexts, however it's possible that the browser environment interprets the submit URL differently.Are you using the Submit Acrion on the button? If so then email should be prefixed with "mailto:" So the complete submit URL should be:

mailto:form [at] work [dot] org?subject="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]
Yes. I should have put that down in the first place. This is an enterprise network. I'm hoping that there is another work-around for this.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Do you object to using the "mailto:" prefix?

If so, then you could use a script. Here's an article that points out the different ways to send an email from a PDF:

http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

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]

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

Gheezer
Registered: Feb 16 2009
Posts: 19
thomp wrote:
Do you object to using the "mailto:" prefix?If so, then you could use a script. Here's an article that points out the different ways to send an email from a PDF:

http://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

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]
I have no objections to using the "mailto:" prefix, but if either our servers or java in general is keeping the form from being emailed then I think looking for another solution would be prudent.

Thanks for all your help and direction.

Troy