Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Email Submit button

Avatar

Former Community Member
How do I set up my email submit button so users do not have "select email client" and enter default information regarding their email -ie. it says "select option that best describes how you send mail". I want them to be able to just click on the Email Submit button and automatically go into Outlook with the addresses the form needs to be emailed to already in there. How do I do that? I can't get the New Form Assistant to open since I have already started my document.
4 Replies

Avatar

Former Community Member
You can try the mailDoc() method that allow you to specify receipient's email address, subject,body message...



var myDoc = event.target;

myDoc.mailDoc(

false,

"someone@somewhere.com", "", "",

"Subject goes here.",

"Body message goes here."

);



The sample button can be found from this link below:



http://66.34.186.88/LiveCycleSamples/.3bbb696b.pdf

Avatar

Former Community Member
Hi Jimmy,



Thanks for this... I can use it too! One question though, where do I actually insert this code? Sorry, technical is not my strength...



Any advice that you might provide is greatly appreciated!



Rob

Avatar

Former Community Member
You put this code on "click" event of a regular button.

Avatar

Level 2

Thanks for the script Jimmy!  Very useful, just what I was looking for.