These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Email Submit Button

Katie
Registered: Oct 13 2008
Posts: 9

Does anyone know a way to put field data into the subject line of an email that's being submitted?

Thanks!
Katie

My Product Information:
LiveCycle Designer, Windows
darrenmia
Registered: Oct 15 2008
Posts: 4
set your target to the following
"mailto:xxx [at] xxx [dot] com" + "?subject=" + Field Data + "&body=To confirm the request, please click the SEND button";
Katie
Registered: Oct 13 2008
Posts: 9
Actually, my bad... I dont need the words "FIELD DATA" in the subject... I need the value of an actual field to be plugged into the subject.

??
Runolfr
Registered: Oct 1 2008
Posts: 119
In the case he's talking about, "FIELD DATA" would actually be a reference to one of the controls on your form.

The code I use goes like this...

this.resolveNode("#event").submit.target = "mailto:" + textEmail.rawValue + "?&subject=" + textSubject.rawValue;... where textEmail and textSubject are text boxes on the form.

Incidentally, this code would go in the preSubmit event of the form's submit button.
Katie
Registered: Oct 13 2008
Posts: 9
Please forgive my lack of knowledge... but when I entered this:

where View is the fieldname...

I get an Xml pasingerror: not well-formed (invalid token) (error code 4), line 101, col 99

Thanks,
Katie