- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I am pretty sure the answer is in the script. I have put together pieces of script from other suggestions and I am pretty sure I have ascrewed something up along teh way. I have looked at the attached link and that is where I got some of the script you see below. I am sure you will refer to me as the hatchet person who chopped the script up. sorry. (It is in the Mouse Up) This does work, sort of...It will give the user the message that the required fields are not filed in if they are blank, but it will send the email, but without the custom message in the subject line.
if (employeename.rawValue != null || employeename.rawValue != "") {
vSubject = "Form completed by " + employeename.rawValue;
vBody = "The form has been sent by " + employeename.rawValue;
}
if (completedate.rawValue != null || completedate.rawValue != "") {
vBody = vBody + " on " + completedate.rawValue;
}
if (EmployeeID.rawValue != null || EmployeeID.rawValue != "") {
vBody = vBody + " Your ID is: " + EmployeeName.rawValue;
}
var oDoc = event.target;
oDoc.mailDoc({
bUI: false,
cTo: "mail@mail.org",
cSubject: "Statement from " + EmployeeName.rawValue + "
})
Views
Replies
Total Likes