I'm using an Ext.Ajax.request to dynamically load the 'selectfield' options on an Ext.form.Panel.

I realized that declaring variables inside of the AJAX request would not work due to the variable scope, so I declared them outside. However, when I populate my form, I still see that the field's text and value are 'undefined'. I'd appreciate any advice, thanks!