Hi,
You can do this using code.
public bool SubmitToEmail(string emailAdapterName, string to, string cc, string subject, string intro)
{
try
{
thisXDocument.Errors.DeleteAll();
EmailAdapter email = (EmailAdapter)thisXDocument.DataAdapters[emailAdapterName];
email.To = to;
email.CC =cc;
email.Subject = subject;
email.Intro = intro;
email.Submit();
return true;
}
catch (Exception ex)
{
string sMessage = FAILED_UNKNOWN;
return false;
}
}
In the button onlcick event write the following code.
If(SubmitToEmail("emailAdapterName,"to value","cc value","subject", "introduction"))
{
thisXDocument.DOM.selectSingleNode(<status field xpath>).text = "status value";
}