I am not using a "Submit" function in my form. Rather, I am generating an email based upon an "if" statement based on other criteria. And while the action is working, I am now unclear as to how to add specific information from the form to the body of the email so my users do not have to open the attachment unless they really need to. Here is the code I have so far in Java Script:
function msoxd_my_FITEligibility::OnAfterChange(eventObj)
{
var Eligibility = XDocument.DOM.selectSingleNode("my:IFSP/my:Plan/my:FITEligibility").text;
if (Eligibility<5)
{
[email protected];
bstrCC="";
bstrBCC="";
bstrSubject="EI Eligibility Data";
bstrBody="<this is where I want data from the form to appear>";
XDocument.UI.ShowMailItem(bstrTo, bstrCC, bstrBCC, bstrSubject, bstrBody);
}
}
Thank you in advance!