SyntaxError:Syntax Error 35: at line 36?
Below is my script but it is generating a SyntaxError:Syntax Error 35: at line 36 message. Does anyone know how to fix this?
var accountingData = {};
"MIB",
"Local Bonus Plan",
"#1 Sales Account Manager – Aftermarket/Direct",
"#2 Sales Account Manager – OEM/Direct",
"#3 Sales Account Manager – OEM/Distribution",
"#4 Sales Account Manager – OEM/Overlay",
"#5 Sales Manager – Any Products",
"#6 Selling Sales Manager – Any Products",
"#7 New Business Developer – Aftermarket/Direct",
"#8 New Business Developer – OEM/Direct",
"#9 Sales Manager, New Business – Any Product",
"#10 Selling Sales Manager, New Business – Any Product",
"#11 Account Manager – Aftermarket/Direct",
"#12 Account Manager – OEM/Direct",
"#13 Account Manager – Aftermarket/Distribution",
"#14 Sales Manager, Existing Accounts – Any Product",
"#15 Account Service – Aftermarket/Direct",
"#16 Account Service – OEM/Direct",
"#17 Manager, Account Service – Any Product/Direct",
"#18 Growth Representative – Aftermarket/Distribution",
"Legacy Plan",
"TFS Sales VIC",
"Gainsharing Program",
"Local Bonus Plan",
"Materials Processing Incentive Bonus (MPIB)",
"Productivity Improvement Bonus (PIB)",
"Professional Incentive Bonus (PIB)",
"Profit Sharing","Recognition",
"SEP (Shared Earnings Plan)",
"SEP Plus",
"SSBP (Strategic Sourcing Bonus Plan)",
"Statutory Bonus Plan",
};
//Finally you set the values of box2
function SetFieldValues(cDeptName){
this.getField("LocalBonus").setItems(accountingData[cDeptName]);
}
//Custom Keystroke PlanType
//if( event.willCommit ){
if(event.value == "--SELECT--"){
//app.alert(event.value)
//if nothing is chosen in box1 then box2 will be cleared
this.getField("Local Bonus").clearItems();
}else {
//app.alert(event.value)
SetFieldValues(event.value);
}
//
//ENDSCRIPT
//Finally you set the values of box2
function SetFieldValues(cDeptName){
this.getField("Local Bonus").setItems(accountingData[cDeptName]);
}
//Custom Keystroke Plan Type
//if( event.willCommit ){
if(event.value == "--SELECT--"){
//app.alert(event.value)
//if nothing is chosen in box1 then box2 will be cleared
this.getField("Local Bonus").clearItems();
}else {
//app.alert(event.value)
SetFieldValues(event.value);
}
//}
//ENDSCRIPT
