Assigning default valueS to multicombo

1.) multicombo.config.default = ‘id-1’ ---- works

2.) multicombo.config.default = [‘id-1’,‘id-2’] ---- doesn’t work

solution:
3.) multicombo.config.default = ‘id-1’ + comboSeparator + ‘id-2’ ---- works

maybe helpful…

Hello,

thank you for the post. Yes, multicombo value is a list of option ids separated by “separator” ("," by default). So, the following will select options:

multicombo.setValue('id1,id2');

But it would be better if a value could be set as an array as well as a string. We will add array support in the next version.

Best