Skip to main content
Participant
December 8, 2022
Answered

Dependent drop down script issue

  • December 8, 2022
  • 3 replies
  • 2327 views

Hi,

 

I am looking to have a dropdown list which is dependent on what is selected in the first dropdown.

For example to choose a title in drop down 1 which will show options in dropdown 2 depending on the selection.

I have attached a picture below of the script I found in a tutorial, of which I have just changed the names to suit my topics.

But I keep getting errors.

 

Can anyone see where I am going wrong here?

 

Thanks.

This topic has been closed for replies.
Correct answer Nesa Nurani

You are missing : after each case. It should be case "proud":

3 replies

Participant
December 8, 2022

Thank you both for that help.

I have got another error, I have screenshot to show which line it says.

Any ideas what is wrong with line 6?

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
December 8, 2022

You are missing : after each case. It should be case "proud":

Participant
December 8, 2022

That has worked.

Thank you so much for all your help, much appreciated  🙂

Bernd Alheit
Community Expert
Community Expert
December 8, 2022

Use the character " for the text strings, not “ or ”.

Nesa Nurani
Community Expert
Community Expert
December 8, 2022

From what I can see your quotes are not same it should be "", it can happen if you use text editor to create script.

Also at last line instead of /case "-Select-":/ you can use /default:/.