Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

E-mail submit button not working properly


Level 4

Hello, I am on Win 7 and using Adobe LiveCycle, 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 = "";

subjtag2 = "SUBJECTTAG1 ";

strSubject2 = "SUBJECTTAG2";

strMessage2 = txtMessage2.rawValue;

strMessage3 = "\n\n**E-MAIL BODY TEXT.**";{cURL:"mailto:"+ strToAddress2 + "?subject=" + subjtag2 + strSubject2 + "&body=" + strMessage2 + strMessage3,cSubmitAs:"PDF",cCharset:"utf-8"});

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

//this.resolveNode("#event") = "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?

0 Replies