How to dynamically update suggest list data?

I have two text fields: name and set. I want the suggest data of set to depend on what is in name. Both are text views. When the value in the “name” box changes, an event fires which makes an API call using the string in the box (I’m utilizing Node.js to do this). An array is returned and I want that returned array to be the data in the “set” text field’s suggest list. Is there a method I can call so I can update the “set” text field’s suggest list? I’m at a loss on what to do.

The ID of suggest view that belongs to a text control is stored as:

text.config.suggest;

To work with a suggest list, you should use:

var list = $$(suggest_id).getList(); 
list.clearAll(); 
list.parse(data);

http://webix.com/snippet/168d53e4

1 Like

Thank you! It worked perfectly.