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
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The first thing I see is that you use wrong operators.
if(Campus.rawValue = "1") has to be if(Campus.rawValue == "1")
Views
Replies
Total Likes
Hi,
The first thing I see is that you use wrong operators.
if(Campus.rawValue = "1") has to be if(Campus.rawValue == "1")
Views
Replies
Total Likes
That was it!!! thank you so much! Who would have thought one equal sign would cause so much problems.
Thank you again!!
Views
Replies
Total Likes