Hi all!
I am trying to code some javascript that depending on the radio button I choose will determine which email address my form goes to. I think I am close but I am missing something. When I click the email button it always moves the radio button to position 1 and we only get the 1st emails. Here is what I have.
var oDoc = event.target;
if (Campus.rawValue = "1"){
oDoc.mailDoc({
bUI: true,
cTo: "mrbecker@uillinois.edu;" + "giftadministration@uif.uillinois.edu;" + "COI@uiuc.edu",
cSubject: EmployeeName.rawValue + " Donor Conflict of Interest Form ",
cMsg: "Additional comments:"
})}
else if (Campus.rawValue = "2"){
oDoc.mailDoc({
bUI: true,
cTo: "mrbecker@uillinois.edu;" + "giftadministration@uif.uillinois.edu;" + "COI@UIC.edu",
cSubject: EmployeeName.rawValue + " Donor Conflict of Interest Form ",
cMsg: "Additional comments:"
})}
else if (Campus.rawValue = "3"){
oDoc.mailDoc({
bUI: true,
cTo: "mrbecker@uillinois.edu;" + "giftadministration@uif.uillinois.edu;" + "COI@UIS.edu",
cSubject: EmployeeName.rawValue + " Donor Conflict of Interest Form ",
cMsg: "Additional comments:"
})}
Thanks for your help!
Jodi