Solved

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

Posted on 2010-08-26
2
1,664 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

696 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