How to refresh Combo option after page load

I am using combo box to load a JSON object into data property. when page is load up the combo box is load up with default data. I want to refresh the combo box option dynamically by pass in new JSON object as new data. But the combo still display the old option value. How do i refresh the options in combo after page load?

function test() {
$$(“cbo_User”).data = userData;
}

$$(“cbo_User”).clearAll();
$$(“cbo_User”).parse(userData);

:frowning: Hi Stanislaw,

for lists this works, for combo we get error messages clearAll/parse: no such method…

If your combo has id as “cbo_User” the related list will be “cbo_User_list”

$$(“cbo_User_list”).clearAll();
$$(“cbo_User_list”).parse(userData);