T
Tammy
Hi All,
I am using custom code to embed and email a form...
function button::OnClick(eventObj)
{
createEmail();
}
function createEmail()
{
var xmlContact =
XDocument.DOM.selectSingleNode("/my:myFields/my:addContact");
var xmlPri = XDocument.DOM.selectSingleNode("/my:myFields/myri");
{
var oEnvelope = Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject =
XDocument.DOM.selectSingleNode("/my:myFields/myri").text;
oEnvelope.To = "(e-mail address removed)";
oEnvelope.CC =
XDocument.DOM.selectSingleNode("/my:myFields/my:addContact").text;
oEnvelope.Visible = true;
}
}
However when I try to submit to sharepoint through data connection or use
the Close form action it breaks my code above. Can anyone provide additional
code that will also submit to a form library and close the form following the
email submit?
thanks in advance
I am using custom code to embed and email a form...
function button::OnClick(eventObj)
{
createEmail();
}
function createEmail()
{
var xmlContact =
XDocument.DOM.selectSingleNode("/my:myFields/my:addContact");
var xmlPri = XDocument.DOM.selectSingleNode("/my:myFields/myri");
{
var oEnvelope = Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject =
XDocument.DOM.selectSingleNode("/my:myFields/myri").text;
oEnvelope.To = "(e-mail address removed)";
oEnvelope.CC =
XDocument.DOM.selectSingleNode("/my:myFields/my:addContact").text;
oEnvelope.Visible = true;
}
}
However when I try to submit to sharepoint through data connection or use
the Close form action it breaks my code above. Can anyone provide additional
code that will also submit to a form library and close the form following the
email submit?
thanks in advance