Solved

How do I email a pdf form using Javascript in LiveCycle?

Posted on 2010-08-26
2
1,637 Views
Last Modified: 2013-12-16
I created a form in LiveCycle with Javascript code.   I added a submit button which when clicked, the Javascript validation code is executed.  When validation passes, I want to email the form as a PDF.   How would I do this using Javascript in Livecycle?   I tried this.mailto and this.maildoc and they do not work.
0
Comment
Question by:casawang
2 Comments
 
LVL 1

Expert Comment

by:kiqkinas
ID: 33548834
" I want to email the form as a PDF."

You can use javascript to submit the form, but javascript can not send email.

at the end of your validation script add document.forms["formname"].submit();

Once the form is submitted the server (that receives the form data)  must process the form and transmit the email. So you will need to call a server side script (on your web site) to actually send the PDF file as an attachment.

0
 

Accepted Solution

by:
casawang earned 0 total points
ID: 33572013
I found the answer.  

I used the following:
var myDoc = event.target;
myDoc.mailDoc(.....)

to email the form
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now