E-mail submit button not working properly

maestrodog1

06-02-2015

Hello, I am on Win 7 and using Adobe LiveCycle 9.0.0.2, and have a big problem.  I have an e-mail button with the following code:

form1.#subform[0].Button1::click - (JavaScript, client)

var strToAddress2, subjtag2, strSubject2, strMessage2, strMessage3

strToAddress2 = "ADDRESS1@company.com";

subjtag2 = "SUBJECTTAG1 ";

strSubject2 = "SUBJECTTAG2";

strMessage2 = txtMessage2.rawValue;

strMessage3 = "\n\n**E-MAIL BODY TEXT.**";

event.target.submitForm({cURL:"mailto:"+ strToAddress2 + "?subject=" + subjtag2 + strSubject2 + "&body=" + strMessage2 + strMessage3,cSubmitAs:"PDF",cCharset:"utf-8"});

//this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;

//this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;

The problem is, this button works fine on the originally created document.  But when I go into the form and change ANYTHING at all, even text in an unassociated field, not touching the button code and then re-save the document, OR if I copy the button over to a new document, the functionality goes away and clicking it does absolutely nothing.

Can anyone help?

Accepted Solutions (0)

Answers (0)