I have designed several forms in LiveCycle and would like an ID# to be included in the subject line when the user clicks a "Submit Email" button.
The ID# is entered into a field named "ID" in the form.
I created a button (mouse up) and entered the following JavaScript:
var myDoc = event.target;
var g = this.getField("ID");
myDoc.mailDoc({
bUI: true,
cTo: "A [at] a [dot] com",
cCC: "A [at] a [dot] com",
cSubject: g,
cBody: "Body1"
});
When I click the button nothing happens (in preview or in the actual form after it has been saved). Other JavaScript codes have worked fine for me in the past, so I think that I am correctly associating the button with the event, but I may be missing something really basic.
I have been working on this for hours with no luck; any help would be appreciated.
Thanks,
Rio
I am still looking form info on how to populate the parts of an email message such as the subject line from a script if that is possible in this case. So far I haven't spotted anything yet.
StevenD