Initiate click event on button to submit customised email

Avatar

Avatar
Boost 1
Level 1
nicolec26875103
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
nicolec26875103
Level 1

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
nicolec26875103
Level 1

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
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_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)