Hi folks.
I know I have to be close to figuring this out, but I need a smidge more help. I've made a click event that submits my form, but when I try to add a custom subject from some fields in my form I get nothing. Not even an error. Please see the script and pinpoint what I'm doing wrong.
Thanks so much!
Background:
-Precedence is a drop down list.
-CurrentDate is an automatically calculated text field.
-FullName is a user generated text field.
<event activity="click" name="event_click"><script contentType="application/x-javascript">
var oDoc = event.target;
var to = "email@email.com";
var cc = "me@email.com";
var Precedence = this.getField("Precedence").value;
var CurrentDate = CurrentDate.rawValue;
var FullName = FullName.rawValue;
var subject = "New " + Precedence + " Request From " + FullName + " - " + CurrentDate;
oDoc.mailDoc({
bUI: true,
cTo: to,
cCC: cc,
cSubject: subject,
cMsg: "Please don't forget to add your products and all applicable sources before sending this email. Thank you."});</script>