Skip to main content
Participant
January 27, 2017
Answered

Hi, can anyone help.....

  • January 27, 2017
  • 1 reply
  • 1106 views

I have an adobe acrobat DC form. On the form is a submit button.  This opens up internal email account and attaches the file to an email address that I have set up.  I now want to add an email address into the CC of the email which needs to be taken from a name on the form that has been entered.

Thanks

This topic has been closed for replies.
Correct answer try67

It's not JavaScript, actually, but if you need the value to come from a field then you do need to use JavaScript.

You can use something like this:

var ccAddress = this.getField("BCC").valueAsString;

this.mailDoc({cTo: "me@server.com", cSubject: "Email subject line", cCc: ccAddress});

1 reply

try67
Community Expert
Community Expert
January 27, 2017

If you're using the mailto syntax you can learn how to do it here, for example:

https://yoast.com/dev-blog/guide-mailto-links/

Participant
January 27, 2017

Hi.  I have looked at that link, and as Im not really into coding and javascript, it looks like I can only enter one email address.

I need the link to pull the email name from a field on the form, if that makes sense.

Thanks

Ann

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 27, 2017

It's not JavaScript, actually, but if you need the value to come from a field then you do need to use JavaScript.

You can use something like this:

var ccAddress = this.getField("BCC").valueAsString;

this.mailDoc({cTo: "me@server.com", cSubject: "Email subject line", cCc: ccAddress});