How to filter the data in combo

Hi webix Team

How to filter the name object(synonyms values in below snippet) in the combo??

plz follow the below snippet
https://webix.com/snippet/bf6d650b

thanks in advance
deepak

Hi webix Team

solution solved for above requirement, Plz follow the below snippet
https://webix.com/snippet/5bcbdbc7

In these if we select the list directly its not allowing

Please check the next snippet
https://webix.com/snippet/8fe69856

Your original code was mostly correct you just have missed the line which returns check result

if (res.length) return true;

Hi maksim

Thats right but here our requirement is, here two data names is there, once if we filter like (wk) means it want show only wk, then after selection that, wk want to allow into textbox

please follow the below snippet
https://snippet.webix.com/jqg4kx9v

Thanks in advance
Deepak

Sorry, it is still unclear
If you need to filter by multiple fields you can combine them into a single search string, like next

https://snippet.webix.com/zcryotqg

If you need to update the list of synonyms on the fly, your original code already do it

https://snippet.webix.com/ytjkg0wx

If you need to select different text in the combo based on what was typed in the fitler ( main keywork or synonyms ) you need to update filter function and for each filtering operation mark by which key item was filtered. You existing code seem does noting

value.toString().toLowerCase().indexOf("")

as indexOf("") will be always zero. You need to compare typed text with df first and with vf after that.