on 05-11-2009 4:48 PM
Hi,
I am trying to send adobe form which will be filled by user.
I was able to email it if I have the email populated already in the form.
For this I have used normal submit button,changed control type to submit and used mailto: in URL.
I have used following code in form:ready event of the button.
this.resolveNode("#event.#submit").target = "mailto:"+$record.ITEM.PEMAI.value;
This works fine..
I also want to give user an option for entering email or should overwrite the existing email.How can I accomidate this?
Rgds
Vara
Edited by: Vara K on May 11, 2009 5:48 PM
Hi Vara,
you can use a button (Control Type: Regular) and in the click event a javaScript like following:
var lEmail=xfa.record.ITEM.PEMAI.value;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: lEmail,
cCC: "",
cSubject: "Subject",
cMsg: "..."
});
} catch (e) {}
Regards
Michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Michal,
it worked!! thank you.
I am also trying to CC .Let me know what is wrong in this code.
I want to CC for 4 people.
var lEmail = xfa.record.ITEM.PEMAI.value;
var 2Email = xfa.record.ITEM.PPCC1.value;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: lEmail,
cCC: 2Email,
cSubject: "Subject",
cMsg: "..."
});
} catch (e) {}
Rgds
Vara
Thank you Michal.
cc works now.
but how do I include multiple addresses? what is wrong in this code?
var lEmail = xfa.record.ITEM.PEMAI.value;
var CEmail = xfa.record.ITEM.PPCC1.value;
var BEmail = xfa.record.ITEM.PPCC2.value;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: lEmail,
cCc: CEmail;BEmail,
cSubject: "Project Request For Information",
cMsg: "Dear Customer,.........."
});
} catch (e) {}
Hi Vara,
use the following code:
var lEmail = xfa.record.ITEM.PEMAI.value;
var CEmail = xfa.record.ITEM.PPCC1.value+";"+xfa.record.ITEM.PPCC2.value;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: lEmail,
cCc: CEmail,
cSubject: "Project Request For Information",
cMsg: "Dear Customer,.........."
});
} catch (e) {}
Regards
Michal
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.