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. š
Copy link to clipboard
Copied
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.