Refreshing select on Form

I’ve seen this discussed here before, but the user said he’d solved it without explaining how!

Here is my problem (a common one …). I have a form for customer details which has a select box on it (let’s say to select “city”). If I add a new customer, and the city is not in the underlying table that fills the select box, then I pop up a form, add a city to the table, and now I want to repopulate the select box, WITHOUT reloading the form.

I’ve tried looking for methods for the “select” but didn’t find any…


correct, form only have “connector” attribute to load options once on init
you can:
var sel = myForm.getSelect(name);
which will return you select dom element and do all you need with options, like:
sel.options.add(new Option(“a”,“b”));