Seems I am still having zero luck.
using code:
//=======
// The following function handler is created by Microsoft Office InfoPath.
// Do not modify the name of the function, or the name and number of arguments.
//=======
function CTRL136_5::OnClick(eventObj)
{
var mail = XDocument.DataAdapters("TEST-NOCC");
var OSOA = XDocument.DOM.selectSingleNode("//myFields/secProcessorInfo/fldOSOA");
var Location = XDocument.DOM.selectSingleNode("//myFields/secProcessorInfo/fldLocation");
mail.Intro = "MY TEXT HERE"
mail.Submit();
}
I get the "MY TEXT HERE" In the Body of the email
Now if i try:
Mail.Intro = OSOA
I get a type mismatch error on that line
Of i try:
mail.Intro = concat(OSOA);
I get Object expected
What am I doing wrong?
Eventually I will need Body to have:
Location: LocationA (or what is in the Location text box)
OSOA: (whatever is in the OSOA text box)
i will need about a dozen more fields, but if i can get two working, rest should be easy.