• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Create CC address from field value

Community Beginner ,
Aug 07, 2017 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

194

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
community guidelines
Community Expert ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

LATEST

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...

Votes

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
community guidelines