Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Attachment Issues

Status
Not open for further replies.

mccom786

Technical User
Feb 4, 2009
1
US
Hey,
I’m a new to using Acrobat to do…pretty much anything. I’ve converted some company documents to PDF, inserted forms, and distributed them. All is going well with the exception of two things:
1) i want to change the subject line for returned emails.
2) i want to know how i can rename the PDF document when it gets attached to an email after a user clicks submit. Id like the file name to take the name entered into the form and append the name of the form to it. so NAMEpayroll.pdf.

Iv tried changing the mailto script to include changing the subject, but it didnt seam to work. I have no clue how to go about scripting the change in attachment file name.
Any advice or links that might assist me? Thanks for any help.
-Mitch
 
I'm having the exact same issue. Anyone know how to go about doing this? I've searched but nothing seems to work.

~ Gartist
 
Here is what I found for the issue of. mailto seems difficult. The link below has a great examples of what to use for which type of file type. PDF, FDF... for mailing.

Mailto script not changing Subject line




// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "yourEmail@addresshere.com";

// or for a variable in the form
// var cToAddr = this.getField["fieldName"].value;



// Set the subject text
var cSubLine = this.getField("name_of_field").value;


// Set the body text for the e-mail message
var cBody = "Thank you for submitting your form."

// Send the form data as an FDF attachment on an e-mail
this.mailDoc({bUI: true,cTo: cToAddr,cSubject: cSubLine,cMsg: cBody});
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top