Variables with multiple conditions
app.execMenuItem("SaveAs");
var Dropdown;
var Radio;
if (Radio == 1) {
Dropdown = this.getField("Dropdown1");
} else if (Radio == 2) {
Dropdown = this.getField("Dropdown2");
} else if (Radio == 3) {
Dropdown = this.getField("Dropdown3");
} else if (Radio == 4) {
Dropdown = this.getField("Dropdown4");
}
var theSubject = "TII | " + Dropdown;
this.mailDoc({
bUI: false,
cTo: this.getField("Text Field 4").value,
cCc: "george.fray@optimasystems.com",
cSubject: theSubject,
cMsg: "Hi, can you please review the attached Engineering Change Request? If you feel that this Engineering Change Request Form can be improved, please contact George Fray"
});
Apologies to say I am back.. my variable code isnt working. I get a result and it is only undefined.

