I used one of the sample forms because it had the code to put the form into the body of an email rather than an attachment. That's where all the other elements in the data source come from. I extracted the source files and opened the template.xml file. Issue uses the namespace iss. So that would make my xpath "iss:issue/my:TA" ?? Or, since it is under the contributors folder, is it "iss:issue/iss:contributors/my:TA" ?
Now that I have the xpath figured out, I assume the code I will use (based on the first reply) will be:
oEnvelope.To = rgRecipients.join("; ");
oEnvelope.Subject = string.Format("Reduce and Pay Notification for TA: {0}", GetNodeValue("iss:issue/my:TA"));
oEnvelope.Visible = true;
Question now is, where do I put the other lines he gave me (see below)?
string textBoxXPath ; // please set the text box xpath into this variable textBoxXPath. and
public string GetNodeValue(string xPath)
{
IXMLDOMNode node = thisXDocument.Dom.selectSingleNode(xPath);
return node.text;
}