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

Attaching PDF to Automail depending on Checkbox

New Here ,
Nov 30, 2022 Nov 30, 2022

Copy link to clipboard

Copied

Hey there,

I want to generate an Automail as an answer to an interactive PDF. In this Mail I want to attach certain other PDF Files depending on the checkbox selction of the user. My Problem is that I don't know how to select the PDF Files wich I want to attach. The PDF Files I want to send via Mail are attachments of the originally interactive PDF.  

This would be kind of what I am looking for:

 

if (this.getField("Group1").value == "Selection1"){

    //attach PDF1 to Mail

}

 

I am also not to sure how to add mutiple single PDF Files to one Mail because I haven't been able to select the ones I'd like to attach. 

Would really appreaciate if someone could help me out with this Problem. 🙂

TOPICS
JavaScript

Views

348

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 ,
Nov 30, 2022 Nov 30, 2022

Copy link to clipboard

Copied

LATEST

You can only attach one file: The current one. To attach another file you would need to open it first and then use its Doc reference to call the mailDoc method on it.

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