Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-08-26
2
Medium Priority
?
1,683 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

715 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