Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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