Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1694
  • Last Modified:

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

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
casawang
Asked:
casawang
1 Solution
 
kiqkinasCommented:
" 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
 
casawangAuthor Commented:
I found the answer.  

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

to email the form
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now