Create CC address from field value

Community Beginner ,
Aug 07, 2017

Copy link to clipboard

Copied

I am creating a form which will be submitted via email. I need the form to CC an email address based on a field value.

I need it to be based on: field = employee ID then cc the email address for the particular ID

I've currently got the rest of it working. Just want to add in this CC function to streamline a process.

so far I've got:

var Subject = getField("fieldname").value;

this.mailDoc({

bUI:false,

cTo: "email address",

cSubject: "Additonal text"=Subject,

cSubmitAs: "PDF"

});

thanks

TOPICS
Acrobat SDK and JavaScript

Views

76

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Create CC address from field value

Community Beginner ,
Aug 07, 2017

Copy link to clipboard

Copied

I am creating a form which will be submitted via email. I need the form to CC an email address based on a field value.

I need it to be based on: field = employee ID then cc the email address for the particular ID

I've currently got the rest of it working. Just want to add in this CC function to streamline a process.

so far I've got:

var Subject = getField("fieldname").value;

this.mailDoc({

bUI:false,

cTo: "email address",

cSubject: "Additonal text"=Subject,

cSubmitAs: "PDF"

});

thanks

TOPICS
Acrobat SDK and JavaScript

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 07, 2017 0
try67 LATEST
Most Valuable Participant ,
Aug 08, 2017

Copy link to clipboard

Copied

You should read the full documentation of the mailDoc method... There's a built-in parameter that allows you to do that, called cCc.

So your could would be:

var Subject = this.getField("fieldname").value;

var ccAddress = this.getField("employee ID").value;

this.mailDoc({

     bUI: false,

     cTo: "email address",

     cCc: ccAddress

     cSubject: "Additonal text"+Subject,

);

I also fixed some other mistakes you had in your code...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 08, 2017 0