In dcc.dropdown value pass as a list

Hi there,

When i pass value arguement in dcc.dropdown as a list in show None but it as list type

Is the value supposed to be a list? Don’t know right now.

Are you running the app with debug=True?

yes value pass as a list

yes I am running the app with debug=True

do you know the answer ??

Not even sure what the question is , to be honest.

Is your app working?

The value argument is usually no a list, only if you use the multi=True option.

All callbacks are executed at startup. So the first print statement is actually ok. What happens if you select a value from the drop-down?

Take a look at these examples:

2 Likes

ok i will see the examples

HI @assad_zafar, according to your example, the value should be a single string, in your case 'CALIFORNIA', instead of ['CALIFORNIA'].

As @AIMPED said, if you want a multiple value selection you can use a list of values as a list using the multi=True option.

ok thanks @AIMPED and @Xavi.LL i am understand thanks