While the example above sort of works it will logically display the list inside the selectbox.
But i would like to select a string so āchoiceā is equal to the selected list.
I would also need to join the lists if multiple options are selected.
I need a little hint here what would be the best way to do this.
Thanks in advance for anyone taking his/her time for me.
It is unclear what you want. Do you want the options to be displayed as strings in the widget? That is already happening. Do you want multiselect to return a string? That cannot happen, it always return a list. Do you want to return a list of strings? Then the options must be strings.
There is no selected list. This is a multiselect so there will be a list of selected options. Since the options themselves are lists, that will be a list of selected lists.
Since i didnāt input string values but my lists.
Which then would return a list within a list i guess but thatās not what i want.
So for example if i select ālist_1ā choice = ['1','2','3','4']
And if i would select ālist_1ā and ālist_3ā choice = ['1','2','3','4','!','?','ā¬','%']