It doesn't seem to work. Is this because it's in VB and C#?
This is what I have now:
function btnSubmit::OnClick(eventObj)
{
public void btnSubmit_Clicked(object sender, ClickedEventArgs e)
{ //get the value from the text field
string interestingText = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:TB-EngineerName", NamespaceManager).Value;
//get that email submit connection EmailSubmitConnection emailSubmit = (EmailSubmitConnection)this.DataConnections["SubmitForm"];
//set the introduction with a value from the form
emailSubmit.Introduction = "This is my shiny new introduction with Engineer Name" + interestingText + "\nAnd an interesting value from a text field as well: The engineer name again! " + interestingText;
//submit the form
this.Submit();
}
}