Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-13 10:57:07

djfixxx
Member

Registered: 2007-04-30
Posts: 0

javascript for email subject from text field

Using javascript I need a script to AutoFill the Subject in email submit button. using this method app.alert("Launching your e-mail program.", 3, 0)
this.mailDoc(
false,
"", "", "",
"Travel Authorization",
"Please review this Travel Authorization. Thank You"
);


or this method

this.submitForm("mailto:mm@mycom.com?"
        + "&cc=gg@mycom.com&bcc=john@mycom.com"
        + "&subject=good news"
        + "&body=The order is in!"
);


My Product Information:
Acrobat Pro 8.1 / Windows

Offline

 

#2 2007-12-13 11:53:00

pddesigner
Member

Registered: 2007-04-24
Posts: 64

Re: javascript for email subject from text field

Try this script on the Submit button (mouse Up).

this.mailDoc({
bUI: false,
cTo: "recipientEmailAddress@theirIP.com",
cCC: "copyToEmailAddress@theirIP.com",
cSubject: "Travel Authorization",
cMsg: "Please review this Travel Authorization. Thank You."
});

Offline

 

#3 2007-12-13 13:46:53

djfixxx
Member

Registered: 2007-04-30
Posts: 0

Re: javascript for email subject from text field

Oh my fault I forgot I need the subject line populated from a filled text field.

So a text field that user fills in like Emp.Name this goes into the subject line.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in