Solved

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

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

773 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