Skip to main content
Participant
September 13, 2023
Question

SyntaxError: syntax error 4 at line 5

  • September 13, 2023
  • 2 replies
  • 860 views

I'm trying to make a dependent drop down, I dont want to add anymore options until I get this error straightened out.

 

 

This topic has been closed for replies.

2 replies

Nesa Nurani
Community Expert
Community Expert
September 14, 2023

You have few errors, 'colon' should be used after statement, not after 'case':

case: '18.XX GENESEE' should be   case '18.XX GENESEE':

and case: 'Choose an option' should be    case 'Choose an option':

Also add 'break' in the last statement or use:

default:
f.clearItems();

 

Participant
September 14, 2023

After moving the colon it and correcting the one quotation this went through, thank you for your help.

try67
Community Expert
Community Expert
September 13, 2023

You must only use straight quotes, not curly ones, like after "BERGEN" in the code above (and maybe elsewhere, too).

Participant
September 14, 2023

Thank you, I thought I had fixed them all but it starts to blend after looking at it for so long.