Yes...all in one form and works splendidly. If anyone needs to know how I was able to do this, please post and I'll be happy to help you, eliminating 3 weeks of searching and piecing together from different posts.
Yes...all in one form and works splendidly. If anyone needs to know how I was able to do this, please post and I'll be happy to help you, eliminating 3 weeks of searching and piecing together from different posts.
// get the date field objectvar oDateField = this.getField('SubmitDateFieldName');// see if the field is emptyif(oDateField.defaultValue == '') {// set field value to the current dataoDateField.value = util.printd('mmm d, yyyy', new Date());// set the default value for the date fieldoDateField.defaultValue = oDateField.value;} // end updating empty field// mail the document and not the FDF formthis.mailDoc({bUI:true, cTo:"<span class="spamspan"><span class="u">fun1</span> [at] <span class="d">example [dot] com</span></span>; <span class="spamspan"><span class="u">fun2</span> [at] <span class="d">example [dot] com</span></span>", cCc:"", cBcc: "",sSubject: "This is the subject", cMsg: "This is the body of the mail."});