Instead of using the pre-made submit button do the following.
Select a button and in the Script Editor under the Click event, paste the following:
var oDoc = event.target;
oDoc.mailDoc({ bUI: true, cTo: "Sample [at] aol [dot] com", cCc: "Sample [at] aol [dot] com", //If you need to CC an email cSubject: "Test " + DeptName.rawValue + " Test", cMsg: "Test " + DeptName.rawValue + " Test", //If you want to put something in the message field of the e mail });
Select a button and in the Script Editor under the Click event, paste the following:
var oDoc = event.target;
oDoc.mailDoc({
bUI: true,
cTo: "Sample [at] aol [dot] com",
cCc: "Sample [at] aol [dot] com", //If you need to CC an email
cSubject: "Test " + DeptName.rawValue + " Test",
cMsg: "Test " + DeptName.rawValue + " Test", //If you want to put something in the message field of the e mail
});