Hi,
We have a “multicombo” form input. We want to add a button to the form to autofill the multicombo with all available remaining choices in suggest list (checksuggest).
Did you know how to do that ?
Hi,
We have a “multicombo” form input. We want to add a button to the form to autofill the multicombo with all available remaining choices in suggest list (checksuggest).
Did you know how to do that ?
I’ve success doing it with the following code :
var multicombo = $$('my_multicombo'); var suggest_list = multicombo.getList(); var option_ids = []; suggest_list.data.each((item)=>{option_ids.push(item.id);}); multicombo.setValue(option_ids.join(','));
There is a better way ?
We plan to add this feature in the future, but as a temporary solution, you can use the following customization (for both multicombo/multiselect):