here you can add email to send to, CC, Subject, and body message
var oDoc = event.target;
cTo: "Agency Contact Email",
cSubject: "Write your title here,
cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme"
Thank you Magus069. Few questions on your response.
1. It looks like the code you provided would automatically send the form to the "Agency Contact". Is that correct?
Using the submit button, I have it set to come to me as a pdf attached to an email and that is working fine. What I want to do is have the text in the body of the email message be autopopulated with certain language and pull in a couple of data pieces from information that was filled in on the form. This will allow me to quickly forward an already populated email to someone identified in the form.
2. Can you update your code to show me how to do that?
3. Can you tell me how and where I put this in Livecycle/
Thanks in advance for your assistance and time.
Thanks in advance to anyone else who might have some advice to solve this issue.
to autopopulate the body message with some value inserted in the form, if I understand correctly, you must
use the "reference_syntax" of an object and use its rawValue to extract the information from it, then thats how you can use values entered in your form.
"reference_syntax" is defined as a tree to access your object e.g.
you want to access Textfield14 inside Subform12, which is Page1.