Initiate click event on button to submit customised email

Avatar

Avatar

nicolec26875103

Avatar

nicolec26875103

nicolec26875103

29-08-2018

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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
MVP

30-08-2018

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

Answers (0)