Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Initiate click event on button to submit customised email

Avatar

Level 2

I have seen answers for this question, but nothing that helps me specifically for what I want.  I am new to Livecycle (Previously used Adobe Acrobat Pro to make interactive forms)

In Adobe I used to be able to easily create a customised email with Javascript

Properties > Action

Trigger: Mouse Up

Action: Run a Javascript

var cToAddr = "EXAMPLE";

var cSubLine = "FORM NAME - " + this.getField("XXXXXX").value;

var cBody = "Dear XXXXX" + ",\n\n" + "Please find attached the FORM NAME for " + this.getField("EXAMPLE").value + "\n\nThank you";

this.mailDoc({bUI: true, cTo: cToAddr, cSubject: cSubLine, cMsg: cBody});

I understand with Livecycle I click on the button and go to Script Editor.

Show: click

Now in the top line of the script editor it has:

form1.Page1.Button1::click - (JavaScript, client)

I am wondering how I know write the javascript to tell it to do what I was doing before. because nothing is working for me   Hopefully this makes sense and someone can help me out! Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If you are trying to submit the form via email, have a lot at this blog entry

http://forms.stefcameron.com/2008/08/28/submitting-form-data-by-email/

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

If you are trying to submit the form via email, have a lot at this blog entry

http://forms.stefcameron.com/2008/08/28/submitting-form-data-by-email/

Bruce