Richselect usage

Hi, i have a small issue. I’m trying to implement a dropdown select item onto mobile scheduler form. However I can’t add dynamically my data to it.

Code is smth like this:

http://webix.com/snippet/841740ca

— here I can’t call statement which I found should work:
$$(‘service’).getPopup().getList().add({ id: 1, value: “firstValue” });

This first part $$(‘serivce’) is NULL/undefined.

Please help. How can I use items which are declared in config.form outlay?

Thank you

Check the updated snippet

  • select was changed to richselect ( plain select doesn’t have add API )
  • $$(“service”) was changed to $$(“scheduler”).$$(“service”) as component doesn’t allow access to inner element from a global scope.

Thank you so much. It did the trick :slight_smile: