Submit a Completed Form using JavaScript
I created a Submit button using a JavaScript to attach the form to the email so I can have a custom Subject Line and Body to the email. I just can't figure out how to get the pdf attachment as the "completed form", as it attaches the fillable form.
So basically I want to combine the "submit a form" Action but being able to still have the custom subject line and email body.
Is this even possible? Thank you in advance.
Here is the script I am using:
var targetEmail = "customemail@email.com";
var subjectLine = this.getField("Full Name").valueAsString + " " + this.getField("Acct#").valueAsString + " - " + this.documentFileName;
var body = "Funds Request\nNEEDED BY: " + this.getField("Needed By_af_date").valueAsString;
this.mailDoc({cTo: targetEmail, cSubject: subjectLine, cMsg: body});

