Hello,
When I execute the below command,
options = st.multiselect(‘What are your favorite colors’, (‘Green’, ‘Yellow’, ‘Red’, ‘Blue’), (‘Yellow’, 'Red))
st.write(options)
The above code works just fine.
But if I change the default to just a single value say ‘Yellow’
It gives me an error saying every multiselect value must exist in options.
In my code, I am passing a list of values as options and giving the first element of the list as a default value but it is giving me the same error - ‘every multiselect value must exist in options’
Why am I not able to do that?
Is there a workaround that?