Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Custom Email Subject from Form Fields - So Close

$
0
0

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>

Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>