Skip to main content
Known Participant
March 1, 2019
Answered

SyntaxError:Syntax Error 35: at line 36?

  • March 1, 2019
  • 3 replies
  • 743 views

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

This topic has been closed for replies.
Correct answer Ned Murphy

My guess is...

"Statutory Bonus Plan",   <-- remove the comma

};

3 replies

Ned Murphy
Legend
March 1, 2019

You're welcome

Ned Murphy
Ned MurphyCorrect answer
Legend
March 1, 2019

My guess is...

"Statutory Bonus Plan",   <-- remove the comma

};

CiaranMHRAuthor
Known Participant
March 1, 2019

Ned Murphy you are a legend. Its working fine now. Thank you so much.

John T Smith
Community Expert
Community Expert
March 1, 2019

If you post the program/process name, a Moderator will be able to move this to that forum to then help other users

I am going to GUESS javascript

Ned Murphy
Legend
March 1, 2019

You need to find the forum for whatever application this involves and post your question(s) there - also, identify which line is line 36.  I can only guess what language this might be, so that means I can only guess at what might constitute a syntax error for that language.

Here is a link to a page that has links to all Adobe forums...

Forum links page: https://forums.adobe.com/welcome