Yes, I know that this is probably a beaten dead horse, but unfortunately, my searches through the forums have not yeilded the answer.
I have an email submit button with a data connection set to the default name of Submit. When there is no code modification, it works fine and submits the email to the preconfigured email address specified in the wizard. When I open the on click event of the submit button and insert the following code
function btnSubmit::OnClick(eventObj)
{
var objEmail = XDocument.DataAdapters("Submit");
objEmail.Intro = XDocument.DOM.selectSingleNode("//my:emailbody").text;
objEmail.Submit();
}
I get the error, object required in the objEmail.Intro line. The source of the emailbody text box is just a string.
I am using JS as the language.