Skip to main content
PurplePixel
Participating Frequently
December 11, 2018
Answered

Insert email manually

  • December 11, 2018
  • 4 replies
  • 1019 views

I am creating a form with Adobe Pro DC. I know how to add a submit button but it there a way a user can send the form to a person of their own choice instead of having to use the one configured in the form?

E.g. They fill the form in, click submit and enter the address they want to send the form to?

Thank you.

This topic has been closed for replies.
Correct answer Thom Parker

I was not expecting someone to do it for me.

Thank you.


Example files are included with the tutorials. But of course a familiarity with Acrobat JavaScript is important for this was well as just about any form or automation action you'd want to perform in Acrobat.

There are some free tutorials on Acrobat JavaScript here:

Free Video Content & Full Listing of Available Videos

4 replies

PurplePixel
Participating Frequently
April 15, 2019

Hi Thom,

I was not sure if I needed to submit a new post or add to my original question here. I revisited my request and I was able to get the PDF form working from the great instructions posted.

Is there any way I can get this working without having the info below hard coded? I would like a user to just be able to send the form to a person of their choice in the var cToAddr section.. not have a hard coded one there.

var cToAddr

// This is
the form return e-mail. Its hardcoded

// so that the form is always returned to the same address

Thank you.

try67
Community Expert
Community Expert
April 15, 2019

Just omit that parameter entirely, or set it to be an empty string:

var cToAddr = "";

PurplePixel
Participating Frequently
April 15, 2019

Perfect. That worked. Thank you so much.

PurplePixel
Participating Frequently
December 11, 2018

Thank you very much Thom. I will take a look and see how I go on.

PurplePixel
Participating Frequently
December 11, 2018

Thank you for taking the time to reply. That all looks a little complicated for me. I don't think I can do what I needed.

Have a form and would like anyone who opens it to be able to send it to a person they choose and not have to use a static configured one.

try67
Community Expert
Community Expert
December 11, 2018

It's really not that complicated and the tutorials explain how to do it very well.

If you want someone to do it for you, then it will probably be for a fee.

PurplePixel
Participating Frequently
December 11, 2018

I was not expecting someone to do it for me.

Thank you.

Thom Parker
Community Expert
Community Expert
December 11, 2018

Here's an article that explains how to use a custom email address

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

here's one that explains form submission

https://acrobatusers.com/tutorials/submitting-data

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often