These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

submitForm (): Modifiying Email Attributes

javanoob
Registered: Nov 16 2009
Posts: 2

I have successfully used one of Thomp's scripts to set up a dynamically populated email using a submitForm command. My question is, how can I embed code in this code set to modify other email attributes such as font type or size etc. Go easy, I'm a newby to this stuff. Thanks in advance. Here is the code set:

// 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 = "memberplus_accounts [at] sdrma [dot] org";

// First, get the client CC e-mail address
var cCCAddr = this.getField("Email").value;

// Set the subject and body text for the e-mail message
var cSubLine = "SDRMA Form Submittal for " + this.getField("Member").value;
var cBody = "Dear valued member, \n\n" +

"Thank you for using SDRMA MemberPlus Online! Please click on 'Send' to forward this email to SDRMA and complete your submittal.\n\n" +
"A copy of this email will be sent to the email address provided by you on the attached form.\n\n" +

"For any questions or assistance, please contact us at (800) 537-7790 or e-mail us at MemberPlus_accounts [at] sdrma [dot] org.\n\n\n" + "Sincerely,\n\n" +

"Member Services\n" +
"SDRMA MemberPlus Online";

//** Send the form data as an XML attachment on an e-mail
// Build the e-mail URL
var cEmailURL = "mailto:memberplus_accounts [at] sdrma [dot] org?cc=" + cCCAddr
+ "&subject=" + cSubLine
+ "&body=" + cBody;

this.submitForm({cURL: cEmailURL, cSubmitAs:"PDF", cCharSet:"utf-8"});

My Product Information:
Acrobat Pro 9.0, Windows
haley
Registered: Jul 15 2010
Posts: 38
I am looking for a simple calculation. I have a total of tax premiums on one line and I would like to do a calculation to obtain 1.25 percent of the amount that will be entered on the previous line. The amount of tax premiums will be different for each institution

Example: Total payable at 1.25% of the previous line